Skip to content

Commit d2c4599

Browse files
committed
Update QQ grow validate_execution_environment step to only
check existing cluster membership when growing to a node.
1 parent 64ba80f commit d2c4599

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/queues/commands/grow_command.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ defmodule RabbitMQ.CLI.Queues.Commands.GrowCommand do
6464
Validators.chain(
6565
[
6666
&Validators.rabbit_is_running/2,
67-
&Validators.existing_cluster_member/2
67+
fn args = [n, _], opts ->
68+
if is_integer(n) do
69+
:ok
70+
else
71+
Validators.existing_cluster_member(args, opts)
72+
end
73+
end
6874
],
6975
[args, opts]
7076
)

0 commit comments

Comments
 (0)