diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2011-01-23 10:31:17 -0600 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2011-01-23 10:31:17 -0600 |
commit | 2f261098fcbe6377d952559e2c1566824a7e3eeb (patch) | |
tree | 448d8a37a6203c60dedcaf5767c59ad2884df6e5 | |
parent | 44c41bfaf9ca0e8ff2a327618105318423afa2b6 (diff) | |
parent | c4edbb46a188e8457ec6309df2990d5819f1963e (diff) | |
download | bcfg2-2f261098fcbe6377d952559e2c1566824a7e3eeb.tar.gz bcfg2-2f261098fcbe6377d952559e2c1566824a7e3eeb.tar.bz2 bcfg2-2f261098fcbe6377d952559e2c1566824a7e3eeb.zip |
Merge branch 'sprint'
-rw-r--r-- | src/lib/Server/Plugins/Cfg.py | 2 |
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 |