fix syntaxis errors

This commit is contained in:
Andrei Yankovich 2019-07-22 17:05:28 +03:00
parent 8de9581a25
commit 9fceb6db6a
2 changed files with 2 additions and 3 deletions

View File

@ -36,10 +36,10 @@ class buildBotIdentity(BuildBotModule):
] ]
) )
SecretManager secret("/home/andrei/buildBotSecret/secret.json"); secret = SecretManager("/home/andrei/buildBotSecret/secret.json")
self.masterConf['www']['auth'] = util.UserPasswordAuth([ self.masterConf['www']['auth'] = util.UserPasswordAuth([
('EndrII', secret.getValue("ENDRII")), ('EndrII', secret.getValue("ENDRII")),
('ZIG', secret.getValue("ZIG")) ('ZIG', secret.getValue("ZIG"))
])value ])

View File

@ -3,7 +3,6 @@ import json
from pathlib import Path from pathlib import Path
class SecretManager: class SecretManager:
jsfile = {}
def __init__(self, jsFile): def __init__(self, jsFile):
contents = Path(jsFile).read_text() contents = Path(jsFile).read_text()