fix: use explicit boolean check for Ansible 2.19+ compatibility

Fixes implicit truthy conditional that fails in Ansible 2.19+.

Changes `when: scsi_devices['stdout'] | length` to `when: scsi_devices['stdout'] | length > 0` to return an explicit boolean value instead of an integer.

Closes #146 (duplicate PR)
This commit is contained in:
Spirit-act
2025-11-01 20:55:35 +01:00
committed by GitHub
parent 26246c7160
commit ff13947aaf

View File

@@ -37,4 +37,4 @@
ansible.builtin.command: "{{ rescan_scsi_command }}"
become: true
changed_when: false
when: scsi_devices['stdout'] | length
when: scsi_devices['stdout'] | length > 0