summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-12-30 12:25:52 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-12-30 12:25:52 -0500
commit5be6f4fb19b8702533ef5edf1f55e05ba161ecf5 (patch)
tree925cbaac73e5ebab763b36331c0841742a5a9fa1
parent6a9e492eaaca81609e7dd149a660bb24e119572c (diff)
downloadbcfg2-5be6f4fb19b8702533ef5edf1f55e05ba161ecf5.tar.gz
bcfg2-5be6f4fb19b8702533ef5edf1f55e05ba161ecf5.tar.bz2
bcfg2-5be6f4fb19b8702533ef5edf1f55e05ba161ecf5.zip
fixed handling of new probed base64-encoded files
-rw-r--r--src/lib/Server/Plugins/FileProbes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/FileProbes.py b/src/lib/Server/Plugins/FileProbes.py
index 0c1a0d897..269664ef4 100644
--- a/src/lib/Server/Plugins/FileProbes.py
+++ b/src/lib/Server/Plugins/FileProbes.py
@@ -133,7 +133,7 @@ class FileProbes(Bcfg2.Server.Plugin.Plugin,
create = True
# get current entry data
- if entry.get("encoding") == "base64":
+ if entry.text and entry.get("encoding") == "base64":
entrydata = binascii.a2b_base64(entry.text)
else:
entrydata = entry.text