summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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 = []