diff --git a/endpoints/api/secscan.py b/endpoints/api/secscan.py index c05e40fef..b4b3681fc 100644 --- a/endpoints/api/secscan.py +++ b/endpoints/api/secscan.py @@ -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