]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
prune-quay.py: dump digest map with --verbose
authorDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:17:57 +0000 (15:17 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:24:38 +0000 (15:24 -0700)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
quay-pruner/build/prune-quay.py

index eddd5962f53b3a0b7164bf56c5e6ba9a1fe35ae2..4c2614d530f52e076bd086137626ce2426ec1f8c 100755 (executable)
@@ -227,6 +227,9 @@ def main():
             digest_map[digest].add(tag['name'])
         else:
             digest_map[digest] = set((tag['name'],))
+    if args.verbose:
+        for d,l in digest_map.items():
+            print(f'{d}: {l}')
 
     # find all full tags to delete, put them and ref tag on list
     tags_to_delete = set()