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"