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:
|
except EC2ResponseError as e:
|
||||||
if e.error_code == 'DryRunOperation':
|
if e.error_code == 'DryRunOperation':
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
for route_spec in route_specs_to_create:
|
for route_spec in route_specs_to_create:
|
||||||
try:
|
try:
|
||||||
|
@ -406,6 +408,8 @@ def ensure_routes(vpc_conn, route_table, route_specs, propagating_vgw_ids,
|
||||||
except EC2ResponseError as e:
|
except EC2ResponseError as e:
|
||||||
if e.error_code == 'DryRunOperation':
|
if e.error_code == 'DryRunOperation':
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
for route_spec in route_specs_to_recreate:
|
for route_spec in route_specs_to_recreate:
|
||||||
if not check_mode:
|
if not check_mode:
|
||||||
|
|
Loading…
Reference in a new issue