mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[aws] Fix unused return value in ec2_vpc_vgw_facts module (#41697)
This commit is contained in:
parent
1268ce4d4f
commit
956fe7362d
1 changed files with 3 additions and 5 deletions
|
@ -124,11 +124,9 @@ def list_virtual_gateways(client, module):
|
||||||
except botocore.exceptions.ClientError as e:
|
except botocore.exceptions.ClientError as e:
|
||||||
module.fail_json(msg=str(e), exception=traceback.format_exc())
|
module.fail_json(msg=str(e), exception=traceback.format_exc())
|
||||||
|
|
||||||
snaked_vgws = [camel_dict_to_snake_dict(get_virtual_gateway_info(vgw))
|
return [camel_dict_to_snake_dict(get_virtual_gateway_info(vgw))
|
||||||
for vgw in all_virtual_gateways['VpnGateways']]
|
for vgw in all_virtual_gateways['VpnGateways']]
|
||||||
|
|
||||||
module.exit_json(virtual_gateways=snaked_vgws)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ec2_argument_spec()
|
argument_spec = ec2_argument_spec()
|
||||||
|
@ -154,7 +152,7 @@ def main():
|
||||||
# call your function here
|
# call your function here
|
||||||
results = list_virtual_gateways(connection, module)
|
results = list_virtual_gateways(connection, module)
|
||||||
|
|
||||||
module.exit_json(result=results)
|
module.exit_json(virtual_gateways=results)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue