diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-14 18:39:19 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-10-24 18:03:28 +0200 |
commit | dcc545ed447feadb1ed6d53ab70311ed0d2123c3 (patch) | |
tree | 25030c0356bf463fcb3758a06adbd211a0662bf7 /ipsilon/util | |
parent | d597f362db9012a47164369e7614fd6a2060e7e5 (diff) | |
download | ipsilon-dcc545ed447feadb1ed6d53ab70311ed0d2123c3.tar.gz ipsilon-dcc545ed447feadb1ed6d53ab70311ed0d2123c3.tar.xz ipsilon-dcc545ed447feadb1ed6d53ab70311ed0d2123c3.zip |
Properly handle empty values in storage
Do not return default values if an actual empty string is found
in the database.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/util')
-rwxr-xr-x | ipsilon/util/plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipsilon/util/plugin.py b/ipsilon/util/plugin.py index 9222a35..919a28d 100755 --- a/ipsilon/util/plugin.py +++ b/ipsilon/util/plugin.py @@ -154,7 +154,7 @@ class PluginObject(Log): value = None if self._config: value = self._config.get(name, None) - if not value: + if value is None: if self._options: opt = self._options.get(name, None) if opt: |