Rename accessed items in the data model
This commit is contained in:
parent
c233760007
commit
ffd567e2c2
3 changed files with 5 additions and 5 deletions
|
@ -124,7 +124,7 @@ def _create_manifest(repository_id, manifest_interface_instance, storage):
|
|||
# Determine and populate the legacy image if necessary. Manifest lists will not have a legacy
|
||||
# image.
|
||||
legacy_image = None
|
||||
if manifest_interface_instance.leaf_layer_v1_image_id is not None:
|
||||
if manifest_interface_instance.has_legacy_image:
|
||||
legacy_image_id = _populate_legacy_image(repository_id, manifest_interface_instance, blob_map,
|
||||
retriever)
|
||||
if legacy_image_id is None:
|
||||
|
@ -193,7 +193,7 @@ def _create_manifest(repository_id, manifest_interface_instance, storage):
|
|||
def _populate_legacy_image(repository_id, manifest_interface_instance, blob_map, retriever):
|
||||
# Lookup all the images and their parent images (if any) inside the manifest.
|
||||
# This will let us know which v1 images we need to synthesize and which ones are invalid.
|
||||
docker_image_ids = list(manifest_interface_instance.legacy_image_ids)
|
||||
docker_image_ids = list(manifest_interface_instance.get_legacy_image_ids(retriever))
|
||||
images_query = lookup_repository_images(repository_id, docker_image_ids)
|
||||
image_storage_map = {i.docker_image_id: i.storage for i in images_query}
|
||||
|
||||
|
|
Reference in a new issue