From 15ff24fccdfd255e845226a91bd477d3e01b64e1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 10 Mar 2023 16:38:47 -0500 Subject: [PATCH] Correct syntax errors in auth.py --- confluent_server/confluent/auth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/confluent_server/confluent/auth.py b/confluent_server/confluent/auth.py index 55b3836c..212628ee 100644 --- a/confluent_server/confluent/auth.py +++ b/confluent_server/confluent/auth.py @@ -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: