Skip to content

Commit b619e66

Browse files
committed
Explicitly handle undefined case for getting web_dispatch.auth_backends
1 parent b048ed5 commit b619e66

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)