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

Loading…
Cancel
Save