summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-18 15:03:14 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-18 15:03:14 +0200
commit432bf4bc5f8be20ad355fc334d60083fa84db2f2 (patch)
treed22336a6c278fe23790eb84e985ca6280c15e2d9 /scripts
parentfe652067a0d4738f9bfd3c6c910daadbd35993a8 (diff)
downloadcommunity.vyos.net-432bf4bc5f8be20ad355fc334d60083fa84db2f2.tar.gz
community.vyos.net-432bf4bc5f8be20ad355fc334d60083fa84db2f2.zip
Revert "Temporary fix: account for the snapshots bucket layout change."
This reverts commit e2722a011b7d969dbc3cd41a6998aff894482ea9.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/list-snapshots.py4
1 files changed, 2 insertions, 2 deletions
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 = []