Add a check that will fail if we try to mislink V1 layers

Also logs some useful information
This commit is contained in:
Joseph Schorr 2016-02-11 22:40:00 +02:00
parent 86584abba5
commit 27f1cc0a13
2 changed files with 10 additions and 2 deletions

View file

@ -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))