@ -74,17 +74,22 @@ def get_route_table_info(route_table):
# Add any routes to array
# Add any routes to array
routes = [ ]
routes = [ ]
associations = [ ]
for route in route_table . routes :
for route in route_table . routes :
routes . append ( route . __dict__ )
routes . append ( route . __dict__ )
for association in route_table . associations :
associations . append ( association . __dict__ )
route_table_info = { ' id ' : route_table . id ,
route_table_info = { ' id ' : route_table . id ,
' routes ' : routes ,
' routes ' : routes ,
' tags ' : route_table . tags ,
' associations ' : associations ,
' vpc_id ' : route_table . vpc_id
' tags ' : route_table . tags ,
}
' vpc_id ' : route_table . vpc_id
}
return route_table_info
return route_table_info
def list_ec2_vpc_route_tables ( connection , module ) :
def list_ec2_vpc_route_tables ( connection , module ) :
filters = module . params . get ( " filters " )
filters = module . params . get ( " filters " )
@ -105,7 +110,7 @@ def main():
argument_spec = ec2_argument_spec ( )
argument_spec = ec2_argument_spec ( )
argument_spec . update (
argument_spec . update (
dict (
dict (
filters = dict ( default = None , type = ' dict ' )
filters = dict ( default = None , type = ' dict ' )
)
)
)
)