2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Update auth.py

This commit is contained in:
erderial 2023-03-09 22:38:37 +02:00 committed by GitHub
parent 56dea2422a
commit 85f9dc12fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,11 +124,11 @@ class PromptsNeeded(Exception):
with open("/etc/confluent/authorization.yaml","r") as stream:
loaded_file = yaml.safe_load(stream)
try:
allowed_loaded = loaded_file["_allowedbyrole"]
allowed_loaded = loaded_file["allowedbyrole"]
except:
pass
try:
denied_loaded = loaded_file["_deniedbyrole"]
denied_loaded = loaded_file["deniedbyrole"]
except:
pass