From a6c0227a8f3eae40a5b755af3f66ed638d9feaed Mon Sep 17 00:00:00 2001 From: Andrea Tartaglia Date: Tue, 22 Nov 2016 19:26:32 +0000 Subject: [PATCH] py3 - ported ec2_vpc_route_table iterkeys to dict.keys() (#3503) * ported ec2_vpc_route_table iterkeys to dict.keys() for py3 Addresses ansible/ansible#18507 * Removed '.keys()' --- lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py index f1c10e5bd0..c42dc65239 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py @@ -298,7 +298,7 @@ def route_spec_matches_route(route_spec, route): if all((not route.gateway_id, not route.instance_id, not route.interface_id, not route.vpc_peering_connection_id)): return True - for k in key_attr_map.iterkeys(): + for k in key_attr_map: if k in route_spec: if route_spec[k] != getattr(route, k): return False