summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-06-12 16:08:19 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-06-12 16:08:19 +0000
commitcb440cd649a31b723195338127cd861dbb11676b (patch)
tree503d8c77f1b0aa0fc4785ade4b9fa815a7281260 /src
parent117e16496843c1ab3733e062693356d1e8193e66 (diff)
downloadbcfg2-cb440cd649a31b723195338127cd861dbb11676b.tar.gz
bcfg2-cb440cd649a31b723195338127cd861dbb11676b.tar.bz2
bcfg2-cb440cd649a31b723195338127cd861dbb11676b.zip
Fix binary encoded files with empty checks
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1880 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Cfg.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py
index 402389663..b94f4f38a 100644
--- a/src/lib/Server/Plugins/Cfg.py
+++ b/src/lib/Server/Plugins/Cfg.py
@@ -200,6 +200,7 @@ class ConfigFileEntry(object):
entry.attrib['paranoid'] = 'true'
if entry.attrib['encoding'] == 'base64':
entry.text = binascii.b2a_base64(filedata)
+ return
if filedata == '':
entry.set('empty', 'true')
else: