Skip to content

Commit b4905c0

Browse files
aaron-seomergify[bot]
authored andcommitted
Explicitly handle undefined case for getting web_dispatch.auth_backends
(cherry picked from commit b619e66) (cherry picked from commit 5e24a2b)
1 parent eb96d6a commit b4905c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbitmq_web_dispatch/src/rabbit_web_dispatch_access_control.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ is_basic_auth_disabled(#auth_settings{basic_auth_enabled = Enabled}) ->
366366
get_auth_backends() ->
367367
case application:get_env(rabbitmq_web_dispatch, auth_backends) of
368368
{ok, Backends} -> {ok, Backends};
369-
_ -> rabbit_log:debug("rabbitmq_web_dispatch.auth_backends not configured,
369+
undefined -> rabbit_log:debug("rabbitmq_web_dispatch.auth_backends not configured,
370370
falling back to rabbit.auth_backends"),
371-
application:get_env(rabbit, auth_backends)
371+
application:get_env(rabbit, auth_backends)
372372
end.

0 commit comments

Comments
 (0)