From e810f74607e8fd722d2df87334603db4672ab4f2 Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Thu, 19 May 2011 12:41:22 +0100 Subject: Fold refresh_config in with (un)set_env, abstract into rabbit. --- src/rabbit_control.erl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/rabbit_control.erl') 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), -- cgit v1.2.1