From: Jonatan Schlag Date: Tue, 19 Jun 2018 08:37:14 +0000 (+0200) Subject: Rename DEFAULT section to GENERAL X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=16f2ee205e786169aa0b77c15b6ed71ceff04139;ds=sidebyside Rename DEFAULT section to GENERAL DEFAULT is a special section of the configparser so we should not use this as a section name. Signed-off-by: Jonatan Schlag --- diff --git a/src/nitsi/test.py b/src/nitsi/test.py index 8d29e30..725f049 100755 --- a/src/nitsi/test.py +++ b/src/nitsi/test.py @@ -47,10 +47,10 @@ class Test(): self.log.error("Failed to parse the config") raise e - self.name = self.config["DEFAULT"]["name"] - self.description = self.config["DEFAULT"]["description"] - self.copy_to = self.config["DEFAULT"]["copy_to"] - self.copy_from = self.config["DEFAULT"]["copy_from"] + self.name = self.config["GENERAL"]["name"] + self.description = self.config["GENERAL"]["description"] + self.copy_to = self.config["GENERAL"]["copy_to"] + self.copy_from = self.config["GENERAL"]["copy_from"] self.virtual_environ_path = self.config["VIRTUAL_ENVIRONMENT"]["path"] self.virtual_environ_path = os.path.normpath(self.path + "/" + self.virtual_environ_path)