Skip to content

Commit fab17f2

Browse files
committed
avoid checking signatures on None type "files"
1 parent 5187f4c commit fab17f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hubblestack/utils/signing.py

+2
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ def inner(path, saltenv, *a, **kw):
482482
sign_path = _p(f_sign)
483483
log.debug('path=%s rpath=%s manifest=%s signature=%s',
484484
path, real_path, mani_path, sign_path)
485+
if not real_path:
486+
return f_path
485487
verify_res = verify_files([real_path],
486488
mfname=mani_path, sfname=sign_path,
487489
public_crt=Options.public_crt, ca_crt=Options.ca_crt)

0 commit comments

Comments
 (0)