Small optimization in manifest loading in the OCI data model

This commit is contained in:
Joseph Schorr 2019-01-29 13:11:48 -05:00
parent 6c3eab47e0
commit 0d1ac7a4bb
3 changed files with 7 additions and 4 deletions

View file

@ -66,7 +66,7 @@ class PreOCIModel(SharedModel, RegistryDataInterface):
assert found_tag is None or not found_tag.hidden
return Tag.for_repository_tag(found_tag)
def get_manifest_for_tag(self, tag, backfill_if_necessary=False):
def get_manifest_for_tag(self, tag, backfill_if_necessary=False, include_legacy_image=False):
""" Returns the manifest associated with the given tag. """
try:
tag_manifest = database.TagManifest.get(tag_id=tag._db_id)