summaryrefslogtreecommitdiff
path: root/src/rabbit_control_main.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-04-08 16:00:55 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-04-08 16:00:55 +0100
commit6f8a4ef1ba794b2005dcdccb600c9fa1c621130c (patch)
treecda350d3bb58d95b49c40c8663949a6d19b3cf94 /src/rabbit_control_main.erl
parent2f16bf43db30da94a1f3115bd19e12c3b4f196ea (diff)
downloadrabbitmq-server-6f8a4ef1ba794b2005dcdccb600c9fa1c621130c.tar.gz
Allow parameter validation to know about the user making the change.
Diffstat (limited to 'src/rabbit_control_main.erl')
-rw-r--r--src/rabbit_control_main.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index f9e59078..451f4d70 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -484,8 +484,9 @@ action(set_parameter, Node, [Component, Key, Value], Opts, Inform) ->
VHostArg = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)),
Inform("Setting runtime parameter ~p for component ~p to ~p",
[Key, Component, Value]),
- rpc_call(Node, rabbit_runtime_parameters, parse_set,
- [VHostArg, list_to_binary(Component), list_to_binary(Key), Value]);
+ rpc_call(
+ Node, rabbit_runtime_parameters, parse_set,
+ [VHostArg, list_to_binary(Component), list_to_binary(Key), Value, none]);
action(clear_parameter, Node, [Component, Key], Opts, Inform) ->
VHostArg = list_to_binary(proplists:get_value(?VHOST_OPT, Opts)),