mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Correct syntax errors in auth.py
This commit is contained in:
parent
d9cc9112f4
commit
15ff24fccd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user