Skip to content

Commit

Permalink
Update s3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnell committed Aug 23, 2018
1 parent ce5e6ff commit 28e6bae
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions strax/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28e6bae

Please sign in to comment.