projects
/
cascardo
/
ipsilon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d597f36
)
Properly handle empty values in storage
author
Simo Sorce
<simo@redhat.com>
Tue, 14 Oct 2014 22:39:19 +0000
(18:39 -0400)
committer
Patrick Uiterwijk
<puiterwijk@redhat.com>
Fri, 24 Oct 2014 16:03:28 +0000
(18:03 +0200)
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>
ipsilon/util/plugin.py
patch
|
blob
|
history
diff --git
a/ipsilon/util/plugin.py
b/ipsilon/util/plugin.py
index
9222a35
..
919a28d
100755
(executable)
--- 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)
value = None
if self._config:
value = self._config.get(name, None)
- if
not valu
e:
+ if
value is Non
e:
if self._options:
opt = self._options.get(name, None)
if opt:
if self._options:
opt = self._options.get(name, None)
if opt: