From 0bfc5bcf8232061731f195feb0404b7d08f9b43e Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 24 Oct 2023 08:30:11 -0700 Subject: [PATCH] Fix contains example (#82067) * Added missing round bracket Fixes: https://github.com/ansible/ansible-documentation/issues/555 Signed-off-by: Abhijeet Kasurde --- lib/ansible/plugins/test/contains.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/test/contains.yml b/lib/ansible/plugins/test/contains.yml index 6c81a2f2ce1..7d936f2f0a1 100644 --- a/lib/ansible/plugins/test/contains.yml +++ b/lib/ansible/plugins/test/contains.yml @@ -21,7 +21,7 @@ EXAMPLES: | # as a selector - action: module=doessomething - when: lacp_groups|selectattr('interfaces', 'contains', 'em1')|first).master + when: (lacp_groups|selectattr('interfaces', 'contains', 'em1')|first).master vars: lacp_groups: - master: lacp0