From 36dfb78831c8131ae393eabc2aa1a6af608828d6 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 15 May 2015 09:40:30 -0400 Subject: [PATCH] Output the Internet Gatewoy id directly instead of in a dict. --- lib/ansible/modules/cloud/amazon/ec2_vpc.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc.py b/lib/ansible/modules/cloud/amazon/ec2_vpc.py index 9e1b5d6a47b..0f3bb3e4fcb 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc.py @@ -182,17 +182,6 @@ def get_vpc_info(vpc): 'state': vpc.state, }) -def get_igw_info(igw): - """ - Get info about the internet gateway. - """ - if igw is None: - return {} - - return ({ - 'id': igw.id, - }) - def find_vpc(module, vpc_conn, vpc_id=None, cidr=None): """ Finds a VPC that matches a specific id or cidr + tags