|
|
@ -416,17 +416,11 @@ def main():
|
|
|
|
if acl not in CannedACLStrings:
|
|
|
|
if acl not in CannedACLStrings:
|
|
|
|
module.fail_json(msg='Unknown permission specified: %s' % str(acl))
|
|
|
|
module.fail_json(msg='Unknown permission specified: %s' % str(acl))
|
|
|
|
|
|
|
|
|
|
|
|
if overwrite not in ['always', 'never', 'different']:
|
|
|
|
if overwrite not in ['always', 'never', 'different']:
|
|
|
|
if module.boolean(overwrite):
|
|
|
|
if module.boolean(overwrite):
|
|
|
|
overwrite = 'always'
|
|
|
|
overwrite = 'always'
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
overwrite='never'
|
|
|
|
overwrite = 'never'
|
|
|
|
|
|
|
|
|
|
|
|
if overwrite not in ['always', 'never', 'different']:
|
|
|
|
|
|
|
|
if module.boolean(overwrite):
|
|
|
|
|
|
|
|
overwrite = 'always'
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
overwrite='never'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module)
|
|
|
|
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module)
|
|
|
|
|
|
|
|
|
|
|
|