2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Correct syntax errors in auth.py

This commit is contained in:
Jarrod Johnson 2023-03-10 16:38:47 -05:00
parent d9cc9112f4
commit 15ff24fccd

View File

@ -116,11 +116,11 @@ class PromptsNeeded(Exception):
def __init__(self, prompts):
self.prompts = prompts
#add function to change _allowedbyrole and _deniedbyrole vars.
def add_roles(_allowed,_denied):
#function to parse the roles and the files. If there are modifications to be done to the roles, items will be added to dictionaries.
#If there are no moodifications done to one of the roles, it continues to the next
#Opening YAML file and reading the custom roles
#add function to change _allowedbyrole and _deniedbyrole vars.
def add_roles(_allowed,_denied):
# function to parse the roles and the files. If there are modifications to be done to the roles, items will be added to dictionaries.
# If there are no moodifications done to one of the roles, it continues to the next
# Opening YAML file and reading the custom roles
with open("/etc/confluent/authorization.yaml","r") as stream:
loaded_file = yaml.safe_load(stream)
try: