Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Refs #24 Now displays helpful error when s3 bucket hash is not public…
Browse files Browse the repository at this point in the history
… readable
  • Loading branch information
cshinaver committed Aug 8, 2014
1 parent 697de7f commit e5f042d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions terrarium/terrarium.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@ def _attempt_s3_download(self, target):
os.close(fd)
os.unlink(archive)
return True
# Check if permissions denied
elif not self.args.s3_access_key and 'AccessDenied' in r.content:
print (
'Access was denied to s3 bucket hash %s '
'and no key was provided. '
'Make sure the s3 bucket hash is public '
'readable.' % (remote_key)
)

if not boto:
return False
Expand Down

0 comments on commit e5f042d

Please sign in to comment.