Skip to content

Commit d8ec833

Browse files
author
Daniil Fedotov
committed
Change argument order for output processing function
1 parent 15995ee commit d8ec833

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rabbit_control_helper.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ command(Command, Node, Args, Opts) ->
3333

3434
command_with_output(Command, Node, Args, Opts) ->
3535
Formatted = format_command(Command, Node, Args, Opts),
36-
CommandResult = 'Elixir.RabbitMQCtl':exec_command(Formatted),
36+
CommandResult = 'Elixir.RabbitMQCtl':exec_command(
37+
Formatted, fun(Output,_,_) -> Output end),
3738
ct:pal("Executed command ~p against node ~p~nResult: ~p~n", [Formatted, Node, CommandResult]),
3839
CommandResult.
3940

0 commit comments

Comments
 (0)