Skip to content

Commit d0bf327

Browse files
Avoid badmatches in list comprehensions
1 parent 9cd31f2 commit d0bf327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/monitoring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ Includes all checks in stage 3 plus checks that there are no failed [virtual hos
614614

615615
RabbitMQ CLI tools currently do not provide a dedicated command for this check, but here is an example that could be used in the meantime:
616616
<pre class="lang-bash">
617-
rabbitmqctl eval '[true = rabbit_vhost:is_running_on_all_nodes(VHost) || VHost <- rabbit_vhost:list()], all_vhosts_are_running_on_all_nodes.'
618-
all_vhosts_are_running_on_all_nodes
617+
rabbitmqctl eval 'true = lists:foldl(fun(VHost, Acc) -> Acc andalso rabbit_vhost:is_running_on_all_nodes(VHost) end, true, rabbit_vhost:list()).'
618+
# =&gt; true
619619
</pre>
620620

621621
The probability of false positives is generally low except for systems that are under

0 commit comments

Comments
 (0)