Skip to content

Commit

Permalink
avoid checking signatures on None type "files"
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Jan 30, 2020
1 parent 5187f4c commit fab17f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hubblestack/utils/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ def inner(path, saltenv, *a, **kw):
sign_path = _p(f_sign)
log.debug('path=%s rpath=%s manifest=%s signature=%s',
path, real_path, mani_path, sign_path)
if not real_path:
return f_path
verify_res = verify_files([real_path],
mfname=mani_path, sfname=sign_path,
public_crt=Options.public_crt, ca_crt=Options.ca_crt)
Expand Down

0 comments on commit fab17f2

Please sign in to comment.