mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ec2_vpc_route_table - unmask exceptions during route create/delete (#32256)
This commit is contained in:
parent
fa313c58c0
commit
a95894dfcb
1 changed files with 4 additions and 0 deletions
|
@ -397,6 +397,8 @@ def ensure_routes(vpc_conn, route_table, route_specs, propagating_vgw_ids,
|
|||
except EC2ResponseError as e:
|
||||
if e.error_code == 'DryRunOperation':
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
|
||||
for route_spec in route_specs_to_create:
|
||||
try:
|
||||
|
@ -406,6 +408,8 @@ def ensure_routes(vpc_conn, route_table, route_specs, propagating_vgw_ids,
|
|||
except EC2ResponseError as e:
|
||||
if e.error_code == 'DryRunOperation':
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
|
||||
for route_spec in route_specs_to_recreate:
|
||||
if not check_mode:
|
||||
|
|
Loading…
Reference in a new issue