Skip to content
Snippets Groups Projects
Commit 070c01f8 authored by Mike Palmiotto's avatar Mike Palmiotto Committed by William Roberts
Browse files

tools: Don't error out of insertkeys script on whitespace

Many keys end with whitespace or otherwise have whitespace separating the
certificates.  If insertkeys is intended to support multiple certificates, we
should also support blank line separators.

Change-Id: I5fd17be5785ad1b89a6191e9ba33bbc7c5a4e8e9
parent 0b8c20e7
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,8 @@ class GenerateKeys(object): ...@@ -79,7 +79,8 @@ class GenerateKeys(object):
# If we haven't started the certificate, then we should not encounter any data # If we haven't started the certificate, then we should not encounter any data
elif not inCert: elif not inCert:
sys.exit("Detected erroneous line \""+ line + "\" on " + str(lineNo) if line is not "":
sys.exit("Detected erroneous line \""+ line + "\" on " + str(lineNo)
+ " in pem file: " + path) + " in pem file: " + path)
# else we have started the certicate and need to append the data # else we have started the certicate and need to append the data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment