diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-09-17 15:50:30 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-09-17 15:50:30 +0100 |
| commit | a96ea0968abebe54ff3831dd705f0f1d4db2465b (patch) | |
| tree | 6754b225714f046332870c9e1e7a5092b80970d4 | |
| parent | e6153d9b5763828d15525f1813a646a0c84c7d3d (diff) | |
| download | rabbitmq-server-git-a96ea0968abebe54ff3831dd705f0f1d4db2465b.tar.gz | |
Always warn if there are enabled-but-missing plugins.
| -rw-r--r-- | src/rabbit_plugins_main.erl | 5 |
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, |
