summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-01-16 14:00:42 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-01-16 14:01:03 -0500
commit873a373c7eda0ba523ea8b78c3c45d7e8f189628 (patch)
treee8792176b38fe585c067de22e325058207aad19b /src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py
parent6eda4318b38106c32d0fa1297d52614e288b0265 (diff)
downloadbcfg2-873a373c7eda0ba523ea8b78c3c45d7e8f189628.tar.gz
bcfg2-873a373c7eda0ba523ea8b78c3c45d7e8f189628.tar.bz2
bcfg2-873a373c7eda0ba523ea8b78c3c45d7e8f189628.zip
testsuite: fixed tests for decryption in Properties/CfgPrivateKeyCreator
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py
index bb54c6faa..597f8f57b 100644
--- a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py
+++ b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py
@@ -235,7 +235,7 @@ class CfgPrivateKeyCreator(CfgCreator, StructFile):
def _decrypt(self, element):
""" Decrypt a single encrypted element """
- if not element.text.strip():
+ if not element.text or not element.text.strip():
return
passes = Bcfg2.Encryption.get_passphrases(SETUP)
try: