Merge pull request #870 from coreos-inc/secscanstatusfix
Fix security scan endpoint status
This commit is contained in:
commit
73b0d045d9
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ def _call_security_api(relative_url, *args, **kwargs):
|
|||
|
||||
|
||||
def _get_status(repo_image):
|
||||
if repo_image.security_indexed_engine:
|
||||
if repo_image.security_indexed_engine is not None and repo_image.security_indexed_engine >= 0:
|
||||
return SCAN_STATUS.SCANNED if repo_image.security_indexed else SCAN_STATUS.FAILED
|
||||
|
||||
return SCAN_STATUS.QUEUED
|
||||
|
|
Reference in a new issue