From f675b0a16d8668bffe7f01ee019604e390e6590b Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Fri, 22 May 2015 00:54:44 +0000 Subject: [PATCH] added check for all blank option values --- daemon/core/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/core/conf.py b/daemon/core/conf.py index d320fa57..ca113f8b 100644 --- a/daemon/core/conf.py +++ b/daemon/core/conf.py @@ -76,7 +76,7 @@ class ConfigurableManager(object): try: # key=value (key, value) = kv.split('=', 1) - if value is not None and value.is_empty(): + if value is not None and not value.strip(): value = None except ValueError: # value only @@ -84,7 +84,8 @@ class ConfigurableManager(object): value = kv if key not in keys: raise ValueError, "invalid key: %s" % key - setattr(target, key, value) + if value is not None: + setattr(target, key, value) return None def reset(self):