Fix --order-by-date flag not working when getting images list

This commit is contained in:
Morteza Ghasempour
2020-10-12 12:27:49 +03:30
parent 038e03315e
commit 18d45066c6

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: