mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-12 21:04:20 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user