[aws] Remove unused return in ec2_vpc_dhcp_option_facts module (#41709)

This commit is contained in:
Ryan Brown 2018-06-19 16:36:45 -04:00 committed by Sloane Hertel
parent 531cdddeed
commit 84612577ba

View file

@ -108,10 +108,8 @@ def list_dhcp_options(client, module):
module.fail_json(msg=str(e), exception=traceback.format_exc(),
**camel_dict_to_snake_dict(e.response))
results = [camel_dict_to_snake_dict(get_dhcp_options_info(option))
for option in all_dhcp_options['DhcpOptions']]
module.exit_json(dhcp_options=results)
return [camel_dict_to_snake_dict(get_dhcp_options_info(option))
for option in all_dhcp_options['DhcpOptions']]
def main():
@ -144,7 +142,7 @@ def main():
# call your function here
results = list_dhcp_options(connection, module)
module.exit_json(result=results)
module.exit_json(dhcp_options=results)
if __name__ == '__main__':