Fix security scan endpoint status
This commit is contained in:
parent
3c7ca16051
commit
db1fae4cfc
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