Browse code

s3 - improve waiting for the bucket (#61802)

(cherry picked from commit ff059912658b0dcccfb9c092081a820fcb7173d0)

Sloane Hertel authored on 2019/09/05 03:50:08
Showing 1 changed files
... ...
@@ -389,7 +389,7 @@ def create_bucket(module, s3, bucket, location=None):
389 389
             s3.create_bucket(Bucket=bucket, CreateBucketConfiguration=configuration)
390 390
         else:
391 391
             s3.create_bucket(Bucket=bucket)
392
-        if module.params.get('permission') and not module.params.get('ignore_nonexistent_bucket'):
392
+        if module.params.get('permission'):
393 393
             # Wait for the bucket to exist before setting ACLs
394 394
             s3.get_waiter('bucket_exists').wait(Bucket=bucket)
395 395
         for acl in module.params.get('permission'):