From 3e079a9f2c908e53413df0c4d77363995df8425f Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 11 May 2017 12:26:42 -0400 Subject: [PATCH] Fix for s3objectstore _clean_cache method, thanks to @zzsoni and @nsoranzo --- lib/galaxy/objectstore/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/objectstore/s3.py b/lib/galaxy/objectstore/s3.py index 919d9d19ca4..e16962c042b 100644 --- a/lib/galaxy/objectstore/s3.py +++ b/lib/galaxy/objectstore/s3.py @@ -169,7 +169,7 @@ class S3ObjectStore(ObjectStore): # exceed delete_this_much; start deleting from the front of the file list, # which assumes the oldest files come first on the list. deleted_amount = 0 - for entry in enumerate(file_list): + for entry in file_list: if deleted_amount < delete_this_much: deleted_amount += entry[2] os.remove(entry[1])