mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
fixed fatal error when propagating_vgw_ids is None
This commit is contained in:
parent
cb43a69d8b
commit
40bedf4f83
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ def ensure_routes(vpc_conn, route_table, route_specs, propagating_vgw_ids,
|
||||||
# VGWs in place.
|
# VGWs in place.
|
||||||
routes_to_delete = [r for r in routes_to_match
|
routes_to_delete = [r for r in routes_to_match
|
||||||
if r.gateway_id != 'local'
|
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
|
changed = routes_to_delete or route_specs_to_create
|
||||||
if changed:
|
if changed:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue