Not sure of the value of this warning, but let's unbreak it anyway.
This commit is contained in:
		
							parent
							
								
									3a2986929a
								
							
						
					
					
						commit
						a4f581e9ed
					
				|  | @ -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}, []}}. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue