Check mode support for VPC route table creation
This commit is contained in:
parent
5574516934
commit
253d177dc3
1 changed files with 4 additions and 1 deletions
|
@ -496,8 +496,11 @@ def ensure_route_table_present(connection, module):
|
||||||
|
|
||||||
# If no route table returned then create new route table
|
# If no route table returned then create new route table
|
||||||
if route_table is None:
|
if route_table is None:
|
||||||
|
if module.check_mode:
|
||||||
|
module.exit_json(changed=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
route_table = connection.create_route_table(vpc_id, check_mode)
|
route_table = connection.create_route_table(vpc_id)
|
||||||
changed = True
|
changed = True
|
||||||
except EC2ResponseError, e:
|
except EC2ResponseError, e:
|
||||||
module.fail_json(msg=e.message)
|
module.fail_json(msg=e.message)
|
||||||
|
|
Loading…
Reference in a new issue