From 18d45066c677f8425fd995073f4afd8251b5a8a3 Mon Sep 17 00:00:00 2001 From: Morteza Ghasempour Date: Mon, 12 Oct 2020 12:27:49 +0330 Subject: [PATCH] Fix --order-by-date flag not working when getting images list --- registry.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/registry.py b/registry.py index b0a24a2..6214786 100755 --- a/registry.py +++ b/registry.py @@ -797,7 +797,10 @@ def main_loop(args): print(" no tags!") 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 for tag in tags_list: