Skip to content

Commit 936da11

Browse files
committed
ensure grow_to_count node-count argument is an integer
1 parent 359b7e7 commit 936da11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ defmodule RabbitMQ.CLI.Queues.Commands.GrowToCountCommand do
2121
errors_only: :boolean
2222
]
2323

24-
def merge_defaults(args, opts) do
24+
def merge_defaults([node_count | rem], opts) do
25+
args = [String.to_integer(node_count) | rem]
2526
{args, Map.merge(default_opts(), opts)}
2627
end
2728

0 commit comments

Comments
 (0)