|
|
@ -389,7 +389,7 @@ def create_bucket(module, s3, bucket, location=None):
|
|
|
|
s3.create_bucket(Bucket=bucket, CreateBucketConfiguration=configuration)
|
|
|
|
s3.create_bucket(Bucket=bucket, CreateBucketConfiguration=configuration)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
s3.create_bucket(Bucket=bucket)
|
|
|
|
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
|
|
|
|
# Wait for the bucket to exist before setting ACLs
|
|
|
|
s3.get_waiter('bucket_exists').wait(Bucket=bucket)
|
|
|
|
s3.get_waiter('bucket_exists').wait(Bucket=bucket)
|
|
|
|
for acl in module.params.get('permission'):
|
|
|
|
for acl in module.params.get('permission'):
|
|
|
|