diff options
author | Daniil Baturin <daniil@baturin.org> | 2021-04-18 17:34:59 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2021-04-18 17:34:59 +0700 |
commit | e2722a011b7d969dbc3cd41a6998aff894482ea9 (patch) | |
tree | ac7dc8e11c4fab4b0d0184fe7fccd2c3ff86f923 | |
parent | 457066c5fd1c11c92f729a1cf44f65e005294562 (diff) | |
download | community.vyos.net-e2722a011b7d969dbc3cd41a6998aff894482ea9.tar.gz community.vyos.net-e2722a011b7d969dbc3cd41a6998aff894482ea9.zip |
Temporary fix: account for the snapshots bucket layout change.
-rwxr-xr-x | scripts/list-snapshots.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 = [] |