ec2_vpc_route_table: fixes: #2377 (#2421)

fixed fatal error when propagating_vgw_ids is None
This commit is contained in:
John Kerkstra 2016-07-07 17:43:12 -05:00 committed by René Moser
parent 47b9ede3be
commit d5ebe033e3

View file

@ -319,7 +319,8 @@ def ensure_routes(vpc_conn, route_table, route_specs, propagating_vgw_ids,
# VGWs in place.
routes_to_delete = [r for r in routes_to_match
if r.gateway_id != 'local'
and r.gateway_id not in propagating_vgw_ids]
and (propagating_vgw_ids is not None
and r.gateway_id not in propagating_vgw_ids)]
changed = routes_to_delete or route_specs_to_create
if changed: