mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ec2_vpc_route_table - allow routes to be created if the CIDR already exists but its 'Origin' is 'EnableVgwRoutePropagation' (which cannot be replaced). (#43417)
Fixes #43415
This commit is contained in:
parent
80bea8adaf
commit
a6c97f2243
1 changed files with 3 additions and 2 deletions
|
@ -432,7 +432,8 @@ def index_of_matching_route(route_spec, routes_to_match):
|
|||
for i, route in enumerate(routes_to_match):
|
||||
if route_spec_matches_route(route_spec, route):
|
||||
return "exact", i
|
||||
elif route_spec_matches_route_cidr(route_spec, route):
|
||||
elif 'Origin' in route_spec and route_spec['Origin'] != 'EnableVgwRoutePropagation':
|
||||
if route_spec_matches_route_cidr(route_spec, route):
|
||||
return "replace", i
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue