commit 9dd9b0bfaead4be775a3ec04456c62746785df05
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Thu Sep 19 09:34:59 2013 +0200
Config: skip empty options
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>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Common/Config.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
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?
Show replies by date