From e4a89b6d9efbce063884fbdb2f9439525040fdf2 Mon Sep 17 00:00:00 2001 From: waveydave Date: Tue, 27 Oct 2020 17:06:03 +0000 Subject: [PATCH] Bugfix for > 1000 items --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0996185..77475b0 100644 --- a/main.py +++ b/main.py @@ -58,7 +58,7 @@ def restore_glacier_contents(entries, type): # Get list of Contents when More than 1000 Items while s3_result['IsTruncated']: continuation_key = s3_result['NextContinuationToken'] - s3_result = s3_conn.list_objects_v2(Bucket=bucket, Prefix=prefix, Delimiter="/", ContinuationToken=continuation_key) + s3_result = client.list_objects_v2(Bucket=bucket, Prefix=prefix, ContinuationToken=continuation_key) for file in s3_result['Contents']: # Only Log Glacier Files if file['StorageClass'] == 'GLACIER': @@ -160,4 +160,4 @@ def makeform(root, fields): b2.pack(side = RIGHT, padx = 5, pady = 5) # Run - root.mainloop() \ No newline at end of file + root.mainloop()