Skip to content

Commit 4dc2328

Browse files
committed
I don't know why we're getting …
… None for mfname and sfname, but we should handle it
1 parent 835dffb commit 4dc2328

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hubblestack/utils/signing.py

+6
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,14 @@ def verify_files(targets, mfname='MANIFEST', sfname='SIGNATURE', public_crt='pub
539539
return a mapping from the input target list to the status values (a dict of filename: status)
540540
"""
541541

542+
if mfname is None:
543+
mfname = 'MANIFEST'
544+
if sfname is None:
545+
sfname = 'SIGNATURE'
546+
542547
log.debug("verifying: files: %s | mfname: %s | sfname: %s | public_crt: %s| ca_crt: %s",
543548
targets, mfname, sfname, public_crt, ca_crt)
549+
544550
ret = OrderedDict()
545551
ret[mfname] = verify_signature(mfname, sfname=sfname, public_crt=public_crt, ca_crt=ca_crt)
546552
# ret[mfname] is the strongest claim we can make about the files we're

0 commit comments

Comments
 (0)