Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ec2_vpc_route_table example, fix typo #32415

Merged
merged 1 commit into from
Nov 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ _fail_json_aws() is a new method and may be subject to change. You can use it i
being contributed back to Ansible, however if you are publishing your module separately please
don't use it before the start of 2018 / Ansible 2.4_

In the AnsibleAWSModule there is a special method, `module.fail_json.aws()` for nice reporting of
In the AnsibleAWSModule there is a special method, `module.fail_json_aws()` for nice reporting of
exceptions. Call this on your exception and it will report the error together with a traceback for
use in Ansible verbose mode.

Expand Down
7 changes: 7 additions & 0 deletions lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@
instance_id: "{{ nat.instance_id }}"
register: nat_route_table

- name: delete route table
ec2_vpc_route_table:
vpc_id: vpc-1245678
region: us-west-1
route_table_id: "{{ route_table.id }}"
lookup: id
state: absent
'''

import re
Expand Down