From 6aadf11ff8f9c404c040cbf339d2afa23018b0b7 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 1 Mar 2014 09:33:55 -0500 Subject: [PATCH] Fix up examples in the assert docs to match the way things work. --- utilities/assert | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utilities/assert b/utilities/assert index 2b252989456..f5963d60cd7 100644 --- a/utilities/assert +++ b/utilities/assert @@ -29,11 +29,16 @@ options: that: description: - "A string expression of the same form that can be passed to the 'when' statement" + - "Alternatively, a list of string expressions" required: true author: Michael DeHaan ''' EXAMPLES = ''' -- assert: ansible_os_family != "RedHat" -- assert: "'foo' in some_command_result.stdout" +- assert: { that: "ansible_os_family != 'RedHat'" } + +- assert: + that: + - "'foo' in some_command_result.stdout" + - "number_of_the_counting == 3" '''