summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-06-11 12:27:18 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-06-11 12:27:18 +0200
commit7e3ec138816302652f00ef2e8d71876ee95bd262 (patch)
tree6c08957d2f6bee61d5ca0dcf4f5699cc06425123
parent826fe750d418049ff8120cddb7c16a074d8959c4 (diff)
parent39360235188fca8727051403924226e0efda9f8b (diff)
downloadrabbitmq-server-git-7e3ec138816302652f00ef2e8d71876ee95bd262.tar.gz
Merge branch 'rabbitmq-server-62-part1' into stable
-rw-r--r--src/rabbit_control_main.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index 5a0ce17441..822608f50e 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -478,7 +478,12 @@ action(eval, Node, [Expr], _Opts, _Inform) ->
end;
{error, E, _} ->
{error_string, format_parse_error(E)}
- end.
+ end;
+
+action(Command, Node, Args, Opts, Inform) ->
+ %% For backward compatibility, run commands accepting a timeout with
+ %% the default timeout.
+ action(Command, Node, Args, Opts, Inform, ?RPC_TIMEOUT).
action(list_users, Node, [], _Opts, Inform, Timeout) ->
Inform("Listing users", []),