[aws] Remove unused return in ec2_vpc_igw_facts module (#41708)
This commit is contained in:
parent
a01a17c772
commit
531cdddeed
1 changed files with 3 additions and 5 deletions
|
@ -118,11 +118,9 @@ def list_internet_gateways(client, module):
|
|||
except botocore.exceptions.ClientError as 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']]
|
||||
|
||||
module.exit_json(internet_gateways=snaked_internet_gateways)
|
||||
|
||||
|
||||
def main():
|
||||
argument_spec = ec2_argument_spec()
|
||||
|
@ -148,7 +146,7 @@ def main():
|
|||
# call your function here
|
||||
results = list_internet_gateways(connection, module)
|
||||
|
||||
module.exit_json(result=results)
|
||||
module.exit_json(internet_gateways=results)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue