Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Check for existing S3 bucket using get API call #15

Open
knowuh opened this issue Jun 4, 2015 · 0 comments
Open

Check for existing S3 bucket using get API call #15

knowuh opened this issue Jun 4, 2015 · 0 comments
Assignees
Labels

Comments

@knowuh
Copy link
Collaborator

knowuh commented Jun 4, 2015

In lib/shutterbug/storage/s3_storage.rb#creat_bin we should try first using @bin = self.connection.directories.get(Configuration.instance.s3_bin) and checking to see if that returned a valid result, before creating the @bin using

   self.connection.directories.create(
      :key    => Configuration.instance.s3_bin,
      :public => true)

This morning we learned that if we have more than 100 buckets and call directories.create S3 returns a 404, which isn't handled nicely by Fog.

FYI: @scytacki @jengoree

@knowuh knowuh self-assigned this Jun 4, 2015
@knowuh knowuh added the bug label Jun 4, 2015
@knowuh knowuh changed the title Check for existing using different API call Check for existing S3 bucket using get API call Jun 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant