1
0
Fork 0
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:
mikedlr 2017-12-08 20:48:09 +00:00 committed by Ryan Brown
parent fa313c58c0
commit a95894dfcb

View file

@ -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: