Not sure of the value of this warning, but let's unbreak it anyway.

This commit is contained in:
Simon MacMullen 2014-01-20 15:16:15 +00:00
parent 3a2986929a
commit a4f581e9ed
1 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@
start(_Type, _StartArgs) ->
{ok, Backends} = application:get_env(rabbit, auth_backends),
case lists:member(rabbit_auth_backend_ldap, Backends) of
case configured(rabbit_auth_backend_ldap, Backends) of
true -> ok;
false -> rabbit_log:warning(
"LDAP plugin loaded, but rabbit_auth_backend_ldap is not "
@ -36,6 +36,12 @@ start(_Type, _StartArgs) ->
stop(_State) ->
ok.
configured(_M, []) -> false;
configured(M, [M |_]) -> true;
configured(M, [{M,_}|_]) -> true;
configured(M, [{_,M}|_]) -> true;
configured(M, [_ |T]) -> configured(M, T).
%%----------------------------------------------------------------------------
init([]) -> {ok, {{one_for_one, 3, 10}, []}}.