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()'
This commit is contained in:
Andrea Tartaglia 2016-11-22 19:26:32 +00:00 committed by Matt Clay
parent 5374c7cd09
commit a6c0227a8f

View file

@ -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