Fix contains example (#82067)

* Added missing round bracket

Fixes: https://github.com/ansible/ansible-documentation/issues/555

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/82071/head
Abhijeet Kasurde 1 year ago committed by GitHub
parent 99e0d25857
commit 0bfc5bcf82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ EXAMPLES: |
# as a selector # as a selector
- action: module=doessomething - action: module=doessomething
when: lacp_groups|selectattr('interfaces', 'contains', 'em1')|first).master when: (lacp_groups|selectattr('interfaces', 'contains', 'em1')|first).master
vars: vars:
lacp_groups: lacp_groups:
- master: lacp0 - master: lacp0

Loading…
Cancel
Save