Skip to content

Commit

Permalink
Merge pull request #335 from 4dn-dcic/access_block
Browse files Browse the repository at this point in the history
Access block
  • Loading branch information
SooLee authored May 13, 2021
2 parents fa359be + 051ff72 commit c666d6c
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tibanna/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "1.2.5"
__version__ = "1.2.6"
5 changes: 4 additions & 1 deletion tibanna/core.py
Original file line number Diff line number Diff line change
@@ -803,7 +803,10 @@ def setup_tibanna_env(self, buckets='', usergroup_tag='default', no_randomize=Fa
client = boto3.client('s3')
for b in bucket_names:
logger.info("Deleting public access block for bucket %s" % b)
response = client.delete_public_access_block(Bucket=b)
try:
response = client.delete_public_access_block(Bucket=b)
except Exception as e:
logger.warning("public access block could not be deleted on bucket %s - skipping.." % b)
tibanna_iam = self.IAM(usergroup_tag, bucket_names, no_randomize=no_randomize)
tibanna_iam.create_tibanna_iam(verbose=verbose)
logger.info("Tibanna usergroup %s has been created on AWS." % tibanna_iam.user_group_name)

0 comments on commit c666d6c

Please sign in to comment.