From ad25c31d3fea3ddf0082254265ee71527078cdbc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 26 Jul 2023 16:15:36 -0400 Subject: [PATCH] Correct error in check_for_yaml function in auth --- confluent_server/confluent/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/auth.py b/confluent_server/confluent/auth.py index 212628ee..5459a212 100644 --- a/confluent_server/confluent/auth.py +++ b/confluent_server/confluent/auth.py @@ -145,7 +145,7 @@ def add_roles(_allowed,_denied): def check_for_yaml(): #checking if the file exists - if exists("/etc/confluent/authorization.yaml"): + if os.path.exists("/etc/confluent/authorization.yaml"): add_roles(_allowedbyrole,_deniedbyrole) return "Custom auth. file detected in /etc/confluent, updated roles accordingly"