Make sure to select the latest image in the repository with the matching comment
This commit is contained in:
parent
9f1ec9d47d
commit
3d31c64da2
1 changed files with 1 additions and 0 deletions
|
@ -1110,6 +1110,7 @@ def find_child_image(repo, parent_image, command):
|
||||||
.switch(Image)
|
.switch(Image)
|
||||||
.where(Image.ancestors % '%/' + parent_image.id + '/%',
|
.where(Image.ancestors % '%/' + parent_image.id + '/%',
|
||||||
ImageStorage.command == command)
|
ImageStorage.command == command)
|
||||||
|
.order_by(ImageStorage.created.desc())
|
||||||
.get())
|
.get())
|
||||||
except Image.DoesNotExist:
|
except Image.DoesNotExist:
|
||||||
return None
|
return None
|
||||||
|
|
Reference in a new issue