diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-12-30 12:25:52 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-12-30 12:25:52 -0500 |
commit | 5be6f4fb19b8702533ef5edf1f55e05ba161ecf5 (patch) | |
tree | 925cbaac73e5ebab763b36331c0841742a5a9fa1 | |
parent | 6a9e492eaaca81609e7dd149a660bb24e119572c (diff) | |
download | bcfg2-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.py | 2 |
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 |