Commit 90655cb7 by Michael DeHaan

Fix up examples in the assert docs to match the way things work.

parent 9c18b1a7
...@@ -29,11 +29,16 @@ options: ...@@ -29,11 +29,16 @@ options:
that: that:
description: description:
- "A string expression of the same form that can be passed to the 'when' statement" - "A string expression of the same form that can be passed to the 'when' statement"
- "Alternatively, a list of string expressions"
required: true required: true
author: Michael DeHaan author: Michael DeHaan
''' '''
EXAMPLES = ''' EXAMPLES = '''
- assert: ansible_os_family != "RedHat" - assert: { that: "ansible_os_family != 'RedHat'" }
- assert: "'foo' in some_command_result.stdout"
- assert:
that:
- "'foo' in some_command_result.stdout"
- "number_of_the_counting == 3"
''' '''
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment