summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-14 13:22:54 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-14 13:22:54 +0100
commit606b7f97b0ae4e434f86038ad983b94e9e83f670 (patch)
tree82c3f62a80ff1cdab5952c6b220ec5d747421308
parent61218503e5e193b1048a180f9060ee4f05511af5 (diff)
downloadrabbitmq-server-git-606b7f97b0ae4e434f86038ad983b94e9e83f670.tar.gz
implicitly disable enabled plugins
So, if you enable federation, and then disable amqp_client, federation is also marked as not-enabled.
-rw-r--r--src/rabbit_plugin.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_plugin.erl b/src/rabbit_plugin.erl
index 4cf2a35ea3..e963c2e65c 100644
--- a/src/rabbit_plugin.erl
+++ b/src/rabbit_plugin.erl
@@ -138,7 +138,7 @@ action(disable, ToDisable0, _Opts, PluginsDir, PluginsDistDir) ->
sets:intersection(sets:from_list(DisableOrder),
sets:from_list(ExplicitlyEnabled))),
io:format("Will disable: ~p~n", [ExplicitlyDisabled]),
- update_enabled_plugins(PluginsDir, ExplicitlyEnabled -- ExplicitlyDisabled),
+ update_enabled_plugins(PluginsDir, ExplicitlyEnabled -- DisableOrder),
action(prune, [], {}, PluginsDir, PluginsDistDir).
%%----------------------------------------------------------------------------