summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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).
%%----------------------------------------------------------------------------