diff options
| author | Tim Watson <tim@rabbitmq.com> | 2014-03-28 16:14:58 +0000 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2014-03-28 16:14:58 +0000 |
| commit | 68acf42bd81a7db4d30605a4c5f99fdc48c4f9d9 (patch) | |
| tree | 5f7f36821cf3a750aa8efd929fdfc04e90a5567d | |
| parent | 2065371e2ee52ef62752ffe82b4b7969e523b1fa (diff) | |
| download | rabbitmq-server-git-68acf42bd81a7db4d30605a4c5f99fdc48c4f9d9.tar.gz | |
Calculate the enabled set properly and tweak the UI
| -rw-r--r-- | src/rabbit_plugins_main.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rabbit_plugins_main.erl b/src/rabbit_plugins_main.erl index 7209d73577..b9fdfcd015 100644 --- a/src/rabbit_plugins_main.erl +++ b/src/rabbit_plugins_main.erl @@ -132,7 +132,7 @@ action(enable, Node, ToEnable0, Opts, PluginsFile, PluginsDir) -> OfflineOnly = proplists:get_bool(?OFFLINE_OPT, Opts), NewEnabled = case OfflineOnly of - true -> ExplicitlyEnabled; + true -> ToEnable -- Enabled; false -> case rpc:call(Node, rabbit_plugins, active, [], ?RPC_TIMEOUT) of {badrpc, _} -> rpc_failure(Node); @@ -332,10 +332,8 @@ write_enabled_plugins(PluginsFile, Plugins) -> end. action_change(true, _Node, Action, _Targets) -> - io:format("Plugin configuration has changed. " - "Plugins were not ~p since the node is down.~n" - "Please start the broker to apply " - "your changes.~n", + io:format("Offline Mode: No plugins were ~p.~n" + "Please (re)start the broker to apply your changes.~n", [case Action of enable -> started; disable -> stopped |
