mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
[aws] Remove unused return in ec2_vpc_dhcp_option_facts module (#41709)
This commit is contained in:
parent
531cdddeed
commit
84612577ba
1 changed files with 3 additions and 5 deletions
|
@ -108,11 +108,9 @@ def list_dhcp_options(client, module):
|
||||||
module.fail_json(msg=str(e), exception=traceback.format_exc(),
|
module.fail_json(msg=str(e), exception=traceback.format_exc(),
|
||||||
**camel_dict_to_snake_dict(e.response))
|
**camel_dict_to_snake_dict(e.response))
|
||||||
|
|
||||||
results = [camel_dict_to_snake_dict(get_dhcp_options_info(option))
|
return [camel_dict_to_snake_dict(get_dhcp_options_info(option))
|
||||||
for option in all_dhcp_options['DhcpOptions']]
|
for option in all_dhcp_options['DhcpOptions']]
|
||||||
|
|
||||||
module.exit_json(dhcp_options=results)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ec2_argument_spec()
|
argument_spec = ec2_argument_spec()
|
||||||
|
@ -144,7 +142,7 @@ def main():
|
||||||
# call your function here
|
# call your function here
|
||||||
results = list_dhcp_options(connection, module)
|
results = list_dhcp_options(connection, module)
|
||||||
|
|
||||||
module.exit_json(result=results)
|
module.exit_json(dhcp_options=results)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue