From: Ondrej Lichtner <olichtne(a)redhat.com>
When a config file contained an option with an empty value this would
override the value loaded from previous config files and set it to
nothing. This resulted in some very weird behaviour when resource caches
were not being synchronized.
This commit fixes the problem by skipping options with no values
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/Config.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lnst/Common/Config.py b/lnst/Common/Config.py
index 40e70da..8c749c4 100644
--- a/lnst/Common/Config.py
+++ b/lnst/Common/Config.py
@@ -154,6 +154,8 @@ class Config():
config.pop('__name__', None)
for opt in config:
+ if not config[opt]:
+ continue
option = self._find_option_by_name(section, opt)
if option != None:
if option[1]: #additive?
--
1.8.3.1
Show replies by date