Skip to content

Commit 8b3b055

Browse files
fultonjopenshift-merge-bot[bot]
authored andcommitted
[devscripts] use boolean conditionals in devscripts tasks
Newer Ansible requires conditionals to resolve to explicit boolean values rather than relying on truthiness of other types. 132_extend_lvm.yml: replace bare dict checks for ansible_lvm and root_mount_data with `| length > 0`. Signed-off-by: John Fulton <fulton@redhat.com> Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6a339e4 commit 8b3b055

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

roles/devscripts/tasks/132_extend_lvm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
device_name: "{{ root_mount_data['device'] | split('/') | last }}"
4444
lv_name: "{{ device_name | split('-') | last }}"
4545
when:
46-
- ansible_lvm
47-
- root_mount_data
46+
- ansible_lvm | length > 0
47+
- root_mount_data | length > 0
4848
- ansible_lvm != 'N/A'
4949
- "lv_name in ansible_lvm.lvs"
5050
community.general.lvol:

0 commit comments

Comments
 (0)