Skip to content

Commit

Permalink
s3 - improve waiting for the bucket (ansible#61802)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hertel authored Sep 4, 2019
1 parent 4c8407f commit ff05991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/aws_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def create_bucket(module, s3, bucket, location=None):
s3.create_bucket(Bucket=bucket, CreateBucketConfiguration=configuration)
else:
s3.create_bucket(Bucket=bucket)
if module.params.get('permission') and not module.params.get('ignore_nonexistent_bucket'):
if module.params.get('permission'):
# Wait for the bucket to exist before setting ACLs
s3.get_waiter('bucket_exists').wait(Bucket=bucket)
for acl in module.params.get('permission'):
Expand Down

0 comments on commit ff05991

Please sign in to comment.