Fix an NPE when trying to pull a manifest without a legacy image via V1
This commit is contained in:
parent
d9da838df1
commit
b1dd053b02
6 changed files with 68 additions and 4 deletions
|
@ -12,6 +12,12 @@ class RegistryDataInterface(object):
|
|||
""" Returns whether the implementation of the data interface supports schema 2 format
|
||||
manifests. """
|
||||
|
||||
@abstractmethod
|
||||
def get_tag_legacy_image_id(self, repository_ref, tag_name, storage):
|
||||
""" Returns the legacy image ID for the tag with a legacy images in
|
||||
the repository. Returns None if None.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def get_legacy_tags_map(self, repository_ref, storage):
|
||||
""" Returns a map from tag name to its legacy image ID, for all tags with legacy images in
|
||||
|
|
Reference in a new issue