mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ec2_vpc - Update dict comprehensions and {} formats for python2.6
This commit is contained in:
parent
17f1be7fd8
commit
9068bde560
1 changed files with 2 additions and 2 deletions
|
@ -200,8 +200,8 @@ def get_route_table_by_id(vpc_conn, vpc_id, route_table_id):
|
||||||
|
|
||||||
def get_route_table_by_tags(vpc_conn, vpc_id, tags):
|
def get_route_table_by_tags(vpc_conn, vpc_id, tags):
|
||||||
filters = {'vpc_id': vpc_id}
|
filters = {'vpc_id': vpc_id}
|
||||||
filters.update({'tag:{}'.format(t): v
|
filters.update(dict((('tag:{0}'.format(t), v)
|
||||||
for t, v in tags.iteritems()})
|
for t, v in tags.iteritems())))
|
||||||
route_tables = vpc_conn.get_all_route_tables(filters=filters)
|
route_tables = vpc_conn.get_all_route_tables(filters=filters)
|
||||||
|
|
||||||
if not route_tables:
|
if not route_tables:
|
||||||
|
|
Loading…
Reference in a new issue