s3 - improve waiting for the bucket (#61802)

pull/61810/head
Sloane Hertel 5 years ago committed by GitHub
parent 4c8407fb83
commit ff05991265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'):

Loading…
Cancel
Save