From dcc545ed447feadb1ed6d53ab70311ed0d2123c3 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 14 Oct 2014 18:39:19 -0400 Subject: 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 Reviewed-by: Patrick Uiterwijk --- ipsilon/util/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit