From 432bf4bc5f8be20ad355fc334d60083fa84db2f2 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 18 Apr 2021 15:03:14 +0200 Subject: Revert "Temporary fix: account for the snapshots bucket layout change." This reverts commit e2722a011b7d969dbc3cd41a6998aff894482ea9. --- scripts/list-snapshots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/list-snapshots.py b/scripts/list-snapshots.py index 2f10a56..b3bd98e 100755 --- a/scripts/list-snapshots.py +++ b/scripts/list-snapshots.py @@ -37,14 +37,14 @@ def compare(l, r): s3 = boto3.client('s3') -object_listing = s3.list_objects_v2(Bucket=bucket, Prefix='snapshot/equuleus') +object_listing = s3.list_objects_v2(Bucket=bucket, Prefix='snapshot') data = object_listing['Contents'] files = [] for f in data: files.append(f['Key']) -snapshot_names = set(map(lambda s: re.sub(r'snapshot/equuleus/(.*?)/.*', r'\1', s), files)) +snapshot_names = set(map(lambda s: re.sub(r'snapshot/(.*?)/.*', r'\1', s), files)) snapshots = [] -- cgit v1.2.3