Merge pull request #1228 from coreos-inc/v2storagevalidation
Add a check that will fail if we try to mislink V1 layers
This commit is contained in:
commit
a9c64545fa
2 changed files with 10 additions and 2 deletions
|
@ -133,7 +133,8 @@ def invert_placement_query_results(placement_query):
|
|||
|
||||
def lookup_repository_images(repo, docker_image_ids):
|
||||
return (Image
|
||||
.select()
|
||||
.select(Image, ImageStorage)
|
||||
.join(ImageStorage) # TODO(jschorr): Remove once no longer needed in v2/manifest.py.
|
||||
.where(Image.repository == repo, Image.docker_image_id << docker_image_ids))
|
||||
|
||||
|
||||
|
|
Reference in a new issue