summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-06-05 14:50:38 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-06-12 12:59:54 +0200
commit2ccadf4726d580d12043070180c3c85b58b5db44 (patch)
treef95e335d1336697c3516e3a5d9eb9b29e64beab0
parent1e772b18451d64e1ece8577abd15afe532432199 (diff)
downloadfreeipa-2ccadf4726d580d12043070180c3c85b58b5db44.tar.gz
freeipa-2ccadf4726d580d12043070180c3c85b58b5db44.tar.xz
freeipa-2ccadf4726d580d12043070180c3c85b58b5db44.zip
Skip empty lines when parsing pk12util output.
-rw-r--r--ipaserver/install/certs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py
index 643cbda30..06925d53b 100644
--- a/ipaserver/install/certs.py
+++ b/ipaserver/install/certs.py
@@ -224,7 +224,7 @@ class NSSDatabase(object):
state = 1
if line == "Certificate:":
state = 2
- elif not line.startswith(' '):
+ elif line and not line.startswith(' '):
# Top-level item that is not a certificate
state = 1