Skip to content

Commit 7b83b7f

Browse files
[PR #10079/1936fe51 backport][stable-10] crypttab: removes jijna delimiters from example using when (#10080)
crypttab: removes jijna delimiters from example using when (#10079) The current example includes extra jinja delimiters which result in double-interpretation of the statement. Fixes: #10078 (cherry picked from commit 1936fe5) Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
1 parent 0e1c4a2 commit 7b83b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/crypttab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
state: opts_present
7373
opts: discard
7474
loop: '{{ ansible_mounts }}'
75-
when: "'/dev/mapper/luks-' in {{ item.device }}"
75+
when: "'/dev/mapper/luks-' in item.device"
7676
"""
7777

7878
import os

0 commit comments

Comments
 (0)