]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
prune-quay.py: don't sort delete list 2259/head
authorDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:22:42 +0000 (15:22 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:24:38 +0000 (15:24 -0700)
It's easier to understand what's going on from the debug output
if the list is left in query order, which is newest-to-oldest order

Signed-off-by: Dan Mick <dan.mick@redhat.com>
quay-pruner/build/prune-quay.py

index 2f026a72538b98000dacc869e3f8750e5f3b3605..a3f0d7829450263af3e941ee36e01dd34b3f2b44 100755 (executable)
@@ -302,7 +302,7 @@ def main():
         print('\nDeleting tags:', sorted(tags_to_delete))
 
     # and now delete all the ones we found
-    for tagname in sorted(tags_to_delete):
+    for tagname in tags_to_delete:
         delete_from_quay(tagname, quaytoken, args.dryrun)