Merge pull request #94 from m0rtez4/master

Fix --order-by-date flag not working when trying to get images list
This commit is contained in:
Ivan Pavlushin
2020-10-25 22:45:37 +01:00
committed by GitHub

View File

@@ -797,7 +797,10 @@ def main_loop(args):
print(" no tags!") print(" no tags!")
continue continue
tags_list = get_tags(all_tags_list, image_name, args.tags_like) if args.order_by_date:
tags_list = get_ordered_tags(registry, image_name, all_tags_list, args.order_by_date)
else:
tags_list = get_tags(all_tags_list, image_name, args.tags_like)
# print(tags and optionally layers # print(tags and optionally layers
for tag in tags_list: for tag in tags_list: