Populate image storage objects with locations everywhere.
This commit is contained in:
parent
e68d6a7302
commit
684c26bc1a
4 changed files with 40 additions and 49 deletions
|
@ -23,7 +23,7 @@ def image_view(image):
|
|||
'ancestors': image.ancestors,
|
||||
'dbid': image.id,
|
||||
'size': extended_props.image_size,
|
||||
'locations': [l.location.name for l in image.storage.locations]
|
||||
'locations': list(image.storage.locations),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ class RepositoryTagImages(RepositoryParamResource):
|
|||
except model.DataModelException:
|
||||
raise NotFound()
|
||||
|
||||
parent_images = model.get_parent_images(tag_image)
|
||||
parent_images = model.get_parent_images(namespace, repository, tag_image)
|
||||
|
||||
parents = list(parent_images)
|
||||
parents.reverse()
|
||||
|
|
Reference in a new issue