diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-04-20 18:59:59 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-04-20 18:59:59 +0200 |
commit | ca3695ca4dd2eee5d28718fc3bbd9bb905751923 (patch) | |
tree | 9283362d42aeea8de8a96158fe268a52a82aa979 | |
parent | 15ba40f456c8a578d37f9d723868b0bc1ff7da94 (diff) |
Correct Flake8 issue for config.py file
-rw-r--r-- | glances/config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glances/config.py b/glances/config.py index 7ab8cfd6..2e001b65 100644 --- a/glances/config.py +++ b/glances/config.py @@ -111,7 +111,7 @@ class Config(object): self.parser = ConfigParser(interpolation=None) except TypeError: self.parser = ConfigParser() - + self.read() def config_file_paths(self): @@ -157,6 +157,10 @@ class Config(object): self._loaded_config_file = config_file break + # Set the default values for section not configured + self.sections_set_default() + + def sections_set_default(self): # Globals if not self.parser.has_section('global'): self.parser.add_section('global') |