summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-09-17 15:50:30 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-09-17 15:50:30 +0100
commita96ea0968abebe54ff3831dd705f0f1d4db2465b (patch)
tree6754b225714f046332870c9e1e7a5092b80970d4 /src
parente6153d9b5763828d15525f1813a646a0c84c7d3d (diff)
downloadrabbitmq-server-git-a96ea0968abebe54ff3831dd705f0f1d4db2465b.tar.gz
Always warn if there are enabled-but-missing plugins.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_plugins_main.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit_plugins_main.erl b/src/rabbit_plugins_main.erl
index aed9576046..c9dff83a6f 100644
--- a/src/rabbit_plugins_main.erl
+++ b/src/rabbit_plugins_main.erl
@@ -66,6 +66,11 @@ parse_arguments(CmdLine, NodeStr) ->
action(Command, Node, Args, Opts, PluginsFile, PluginsDir) ->
All = rabbit_plugins:list(PluginsDir),
Enabled = rabbit_plugins:read_enabled(PluginsFile),
+ case Enabled -- plugin_names(All) of
+ [] -> ok;
+ Missing -> io:format("~nWARNING - plugins currently enabled but "
+ "missing: ~p~n~n", [Missing])
+ end,
Implicit = rabbit_plugins:dependencies(false, Enabled, All),
State = #cli{file = PluginsFile,
dir = PluginsDir,