Make security status for manifests without legacy images more clear in the UI
This commit is contained in:
parent
1e4e424d64
commit
001768c043
3 changed files with 16 additions and 5 deletions
|
@ -362,7 +362,7 @@ class OCIModel(SharedModel, RegistryDataInterface):
|
|||
if isinstance(manifest_or_legacy_image, Manifest):
|
||||
image = oci.shared.get_legacy_image_for_manifest(manifest_or_legacy_image._db_id)
|
||||
if image is None:
|
||||
return None
|
||||
return SecurityScanStatus.UNSUPPORTED
|
||||
else:
|
||||
try:
|
||||
image = database.Image.get(id=manifest_or_legacy_image._db_id)
|
||||
|
|
Reference in a new issue