mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
[aws] Remove unused return in ec2_vpc_igw_facts module (#41708)
This commit is contained in:
committed by
Sloane Hertel
parent
a01a17c772
commit
531cdddeed
@@ -118,10 +118,8 @@ def list_internet_gateways(client, module):
|
|||||||
except botocore.exceptions.ClientError as e:
|
except botocore.exceptions.ClientError as e:
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
snaked_internet_gateways = [camel_dict_to_snake_dict(get_internet_gateway_info(igw))
|
return [camel_dict_to_snake_dict(get_internet_gateway_info(igw))
|
||||||
for igw in all_internet_gateways['InternetGateways']]
|
for igw in all_internet_gateways['InternetGateways']]
|
||||||
|
|
||||||
module.exit_json(internet_gateways=snaked_internet_gateways)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -148,7 +146,7 @@ def main():
|
|||||||
# call your function here
|
# call your function here
|
||||||
results = list_internet_gateways(connection, module)
|
results = list_internet_gateways(connection, module)
|
||||||
|
|
||||||
module.exit_json(result=results)
|
module.exit_json(internet_gateways=results)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user