init checkPahekoLdap.py
This commit is contained in:
1 parent
a93d19423f
commit
d7b8d61da5
3 files changed
+62
-4
No files matched your search
@@ -6,10 +6,12 @@ def getDockersConfig(key):
|
||||
for line in config:
|
||||
if line.startswith(f"{key}="):
|
||||
return line.split("=", 1)[1].split("#")[0].strip()
|
||||
raise Exception(f"getDockersConfig(): No config for {key}")
|
||||
|
||||
def getSecretConfig(serv, key):
|
||||
with open(SECRETS.format(serv=serv)) as config:
|
||||
for line in config:
|
||||
if line.startswith(f"{key}="):
|
||||
return line.split("=", 2)[1].split("#")[0].strip()
|
||||
raise Exception(f"getSecretConfig(): No config for {serv}/{key}")
|
||||
|
||||
Reference in new issue
Block a user