summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Cfg.py')
-rw-r--r--src/lib/Server/Plugins/Cfg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py
index dba72908f..e22102ffa 100644
--- a/src/lib/Server/Plugins/Cfg.py
+++ b/src/lib/Server/Plugins/Cfg.py
@@ -121,6 +121,8 @@ class CfgEntrySet(Bcfg2.Server.Plugin.EntrySet):
data = stream.render('text', strip_whitespace=False)
except TypeError:
data = stream.render('text')
+ if data == '':
+ entry.set('empty', 'true')
except Exception, e:
logger.error("Cfg: genshi exception: %s" % e)
raise Bcfg2.Server.Plugin.PluginExecutionError