diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-05-23 11:11:24 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-05-23 11:11:24 +0100 |
commit | 720455453f03f3a722290bd17a06fc1b1546b077 (patch) | |
tree | 25b4847b1c66670f5fde6716c4d5df49a33b949e /src/rabbit_control.erl | |
parent | 7a45bdea49398a76cd6018eb790ba55743eb7a93 (diff) | |
download | rabbitmq-server-720455453f03f3a722290bd17a06fc1b1546b077.tar.gz |
Don't display it as binary.
Diffstat (limited to 'src/rabbit_control.erl')
-rw-r--r-- | src/rabbit_control.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 52cfac9b..e5251438 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -283,14 +283,14 @@ action(list_consumers, Node, _Args, Opts, Inform) -> end; action(trace_on, Node, [], Opts, Inform) -> - VHost = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)), + VHost = proplists:get_value(?VHOST_OPT, Opts), Inform("Starting tracing for vhost ~p", [VHost]), - rpc_call(Node, rabbit_trace, start, [VHost]); + rpc_call(Node, rabbit_trace, start, [list_to_binary(VHost)]); action(trace_off, Node, [], Opts, Inform) -> - VHost = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)), + VHost = proplists:get_value(?VHOST_OPT, Opts), Inform("Stopping tracing for vhost ~p", [VHost]), - rpc_call(Node, rabbit_trace, stop, [VHost]); + rpc_call(Node, rabbit_trace, stop, [list_to_binary(VHost)]); action(set_permissions, Node, [Username, CPerm, WPerm, RPerm], Opts, Inform) -> VHost = proplists:get_value(?VHOST_OPT, Opts), |