X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2FBootManager.py;h=2f4f74f05c37dd54e72c76c17d994e4d49f31b86;hb=f32694ab573424585b4758bc12d88fb89b41fc51;hp=2857d9d8fe53161dcdf40c4480278c62e55ed3e5;hpb=dc8926ef97d1058c3dcfaad5f1628e2984297e4e;p=bootmanager.git diff --git a/source/BootManager.py b/source/BootManager.py index 2857d9d..2f4f74f 100755 --- a/source/BootManager.py +++ b/source/BootManager.py @@ -23,12 +23,12 @@ BM_NODE_LOG = "/tmp/bm.log" VARS_FILE = "configuration" # the new contents of PATH when the boot manager is running -BIN_PATH= ('/usr/local/bin', - '/usr/local/sbin', - '/usr/bin', - '/usr/sbin', - '/bin', - '/sbin') +BIN_PATH = ('/usr/local/bin', + '/usr/local/sbin', + '/usr/bin', + '/usr/sbin', + '/bin', + '/sbin') def read_configuration_file(filename): # read in and store all variables in VARS_FILE into each line @@ -43,7 +43,7 @@ def read_configuration_file(filename): if line[:1] == "#" or string.strip(line) == "": continue - parts = string.split(line,"=") + parts = string.split(line, "=") if len(parts) != 2: validConfFile = False raise Exception("Invalid line in vars file: {}".format(line)) @@ -128,7 +128,7 @@ class log: self.LogEntry("Uploading logs to {}".format(self.VARS['UPLOAD_LOG_SCRIPT'])) self.OutputFile.close() - self.OutputFile= None + self.OutputFile = None hostname = self.VARS['INTERFACE_SETTINGS']['hostname'] + "." + \ self.VARS['INTERFACE_SETTINGS']['domainname']