From e2722a011b7d969dbc3cd41a6998aff894482ea9 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 18 Apr 2021 17:34:59 +0700 Subject: Temporary fix: account for the snapshots bucket layout change. --- 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 b3bd98e..2f10a56 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') +object_listing = s3.list_objects_v2(Bucket=bucket, Prefix='snapshot/equuleus') data = object_listing['Contents'] files = [] for f in data: files.append(f['Key']) -snapshot_names = set(map(lambda s: re.sub(r'snapshot/(.*?)/.*', r'\1', s), files)) +snapshot_names = set(map(lambda s: re.sub(r'snapshot/equuleus/(.*?)/.*', r'\1', s), files)) snapshots = [] -- cgit v1.2.3