From eed6d480464e0fee39696cf3a2cfca1887c4aebb Mon Sep 17 00:00:00 2001 From: Fil <42498829+delta512@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:20:27 +0100 Subject: [PATCH] Fix `failed_when` string in the second `ansible.builtin.uri` example (#84382) Open the double quotes at the beginning of the entire `failed_when` value. Individual conditions work well, yet fail each time they are combined with a logic `or` (as per the example). Double quoting the entire string solved the problem. --- lib/ansible/modules/uri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/uri.py b/lib/ansible/modules/uri.py index 78e431f5df0..6562cfc866c 100644 --- a/lib/ansible/modules/uri.py +++ b/lib/ansible/modules/uri.py @@ -262,7 +262,7 @@ EXAMPLES = r""" url: http://www.example.com return_content: true register: this - failed_when: this is failed or "'AWESOME' not in this.content" + failed_when: "this is failed or 'AWESOME' not in this.content" - name: Create a JIRA issue ansible.builtin.uri: