diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-05-19 12:41:22 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-05-19 12:41:22 +0100 |
commit | e810f74607e8fd722d2df87334603db4672ab4f2 (patch) | |
tree | 8441f417b520f67f171bf9e5cae6d25938a56475 /src/rabbit_control.erl | |
parent | 0cc380824778e2305013efe764effd36a809b36e (diff) | |
download | rabbitmq-server-e810f74607e8fd722d2df87334603db4672ab4f2.tar.gz |
Fold refresh_config in with (un)set_env, abstract into rabbit.
Diffstat (limited to 'src/rabbit_control.erl')
-rw-r--r-- | src/rabbit_control.erl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 94169969..5a013711 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -284,20 +284,16 @@ action(list_consumers, Node, _Args, Opts, Inform) -> action(set_env, Node, [Var, Term], _Opts, Inform) -> Inform("Setting control variable ~s for node ~p to ~s", [Var, Node, Term]), - rpc_call(Node, application, set_env, [rabbit, parse(Var), parse(Term)]); + rpc_call(Node, rabbit, set_env, [parse(Var), parse(Term)]); action(get_env, Node, [Var], _Opts, Inform) -> Inform("Getting control variable ~s for node ~p", [Var, Node]), - Val = rpc_call(Node, application, get_env, [rabbit, parse(Var)]), + Val = rpc_call(Node, rabbit, get_env, [parse(Var)]), io:format("~p~n", [Val]); action(unset_env, Node, [Var], _Opts, Inform) -> Inform("Clearing control variable ~s for node ~p", [Var, Node]), - rpc_call(Node, application, unset_env, [rabbit, parse(Var)]); - -action(refresh_config, Node, [], _Opts, Inform) -> - Inform("Refreshing configuration", []), - rpc_call(Node, rabbit_channel, refresh_config_all, []); + rpc_call(Node, rabbit, unset_env, [parse(Var)]); action(set_permissions, Node, [Username, CPerm, WPerm, RPerm], Opts, Inform) -> VHost = proplists:get_value(?VHOST_OPT, Opts), |