From 28e6baebf67147ad76084db75230304135ab90b7 Mon Sep 17 00:00:00 2001 From: Chris Tunnell <2406627+tunnell@users.noreply.github.com> Date: Thu, 23 Aug 2018 14:52:51 +0200 Subject: [PATCH] Update s3.py --- strax/storage/s3.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/strax/storage/s3.py b/strax/storage/s3.py index 7d7895db6..c03856ee8 100644 --- a/strax/storage/s3.py +++ b/strax/storage/s3.py @@ -72,15 +72,7 @@ def __init__(self, endpoint_url=endpoint_url, service_name='s3') - # List of all buckets on this S3 store (finally, a bucket list!) - # then determine if either no buckets exist or (if they exist) - # whether or not the bucket we need exists. If not, create. - # bucket_list = self.s3.list_buckets() - # if 'Buckets' not in bucket_list: - # bucket_list['Buckets'] = [] - # bucket_names = [x['Name'] for x in bucket_list['Buckets']] - # if self.bucket_name not in bucket_names: - # self.s3.create_bucket(Bucket=self.bucket_name) + # Create bucket (does nothing if exists) self.s3.create_bucket(Bucket=BUCKET_NAME) # Setup backends for reading