Skip to content

Commit

Permalink
[aws] Remove unused return in ec2_vpc_igw_facts module (ansible#41708)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansb authored and s-hertel committed Jun 19, 2018
1 parent a01a17c commit 531cddd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/ansible/modules/cloud/amazon/ec2_vpc_igw_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ 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))
for igw in all_internet_gateways['InternetGateways']]

module.exit_json(internet_gateways=snaked_internet_gateways)
return [camel_dict_to_snake_dict(get_internet_gateway_info(igw))
for igw in all_internet_gateways['InternetGateways']]


def main():
Expand All @@ -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__':
Expand Down

0 comments on commit 531cddd

Please sign in to comment.