mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Tell me what the igw id is if we created an igw.
This commit is contained in:
@@ -182,6 +182,17 @@ def get_vpc_info(vpc):
|
|||||||
'state': vpc.state,
|
'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):
|
def find_vpc(module, vpc_conn, vpc_id=None, cidr=None):
|
||||||
"""
|
"""
|
||||||
Finds a VPC that matches a specific id or cidr + tags
|
Finds a VPC that matches a specific id or cidr + tags
|
||||||
|
|||||||
Reference in New Issue
Block a user