Fix security scan endpoint status

This commit is contained in:
Joseph Schorr 2015-11-13 01:06:18 -05:00
parent 3c7ca16051
commit db1fae4cfc

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