From: Dan Mick Date: Mon, 8 Mar 2021 20:33:04 +0000 (-0800) Subject: prune-quay.py: don't try to examine manifest-list tags X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=50832fa381120de78c9a6b7fa4ba2dd76711640b;p=ceph-build.git prune-quay.py: don't try to examine manifest-list tags They don't have image_ids, so don't consider them for "same as" comparisons Signed-off-by: Dan Mick --- diff --git a/quay-pruner/build/prune-quay.py b/quay-pruner/build/prune-quay.py index 055d7652..1e5a12e6 100755 --- a/quay-pruner/build/prune-quay.py +++ b/quay-pruner/build/prune-quay.py @@ -243,9 +243,11 @@ def main(): # the ref tag may already have been overwritten by a new # build of the same ref, but a different sha1. Delete it only # if it refers to the same image_id as the full tag. - names_of_same_image = \ - [t['name'] for t in quaytags - if t['image_id'] == tag['image_id']] + names_of_same_image = [ + t['name'] for t in quaytags + if not t['is_manifest_list'] + and t['image_id'] == tag['image_id'] + ] if ref in names_of_same_image: if args.verbose: print('Marking %s for deletion' % name)