Reverse the order of get_parent_images

This commit is contained in:
Jake Moshenko 2015-11-06 17:47:08 -05:00
parent 8723fc4def
commit 4314882fa0
4 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@ def _open_stream(formatter, namespace, repository, tag, synthetic_image_id, imag
# the database.
with database.UseThenDisconnect(app.config):
image_list = list(model.image.get_parent_images(namespace, repository, repo_image))
image_list.append(repo_image)
image_list.insert(0, repo_image)
def get_next_image():
for current_image in image_list: