Remove duplicate logic

pull/18777/head
Val Komarov 9 years ago committed by Matt Clay
parent 11f66c0742
commit 0b294d69c5

@ -416,17 +416,11 @@ def main():
if acl not in CannedACLStrings:
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):
overwrite = 'always'
else:
overwrite='never'
if overwrite not in ['always', 'never', 'different']:
if module.boolean(overwrite):
overwrite = 'always'
else:
overwrite='never'
overwrite = 'never'
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module)

Loading…
Cancel
Save