Skip to content

Commit 3cd23c1

Browse files
committed
a minor fix for a special case
where the filename is actually the certificate string
1 parent e7f6aec commit 3cd23c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hubblestack/utils/signing.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ def read_certs(*fnames):
185185
"""
186186
for fname in fnames:
187187
if fname.strip().startswith('--') and '\x0a' in fname:
188-
for i in split_certs(cStringIO.StringIO(fname)):
188+
siofh = cStringIO.StringIO(fname)
189+
siofh.name = '<a string>'
190+
for i in split_certs(siofh):
189191
yield i
190192
elif os.path.isfile(fname):
191193
try:

0 commit comments

Comments
 (0)