diff options
| -rw-r--r-- | src/rabbit_plugins.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index 2e005d5ff0..763657e2b4 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -127,9 +127,8 @@ action(disable, ToDisable0, _Opts, PluginsFile, PluginsDir) -> _ -> print_list("Warning: the following plugins could not be found:", Missing) end, - ToDisable1 = ToDisable -- Missing, - ToDisable2 = calculate_dependencies(true, ToDisable1, AllPlugins), - NewEnabled = Enabled -- ToDisable2, + ToDisableDeps = calculate_dependencies(true, ToDisable, AllPlugins), + NewEnabled = Enabled -- ToDisableDeps, case length(Enabled) =:= length(NewEnabled) of true -> io:format("Plugin configuration unchanged.~n"); false -> ImplicitlyEnabled = |
