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()'
pull/18777/head
Andrea Tartaglia 8 years ago committed by Matt Clay
parent 5374c7cd09
commit a6c0227a8f

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

Loading…
Cancel
Save