Merge pull request #870 from coreos-inc/secscanstatusfix

Fix security scan endpoint status
This commit is contained in:
Jimmy Zelinskie 2015-11-13 10:33:35 -05:00
commit 73b0d045d9

View file

@ -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