dm-vdo / bunsen

Ansible suite to configure a set of machines to replicate the VDO Team's test environment.
GNU General Public License v2.0
0 stars 4 forks source link

Adapt to ansible changes re ansible_lvm. #35

Closed jshimkus-rh closed 1 year ago

jshimkus-rh commented 1 year ago

It was the case that ansible_lvm was not defined if there were no lvm-related entities on a system. More recent ansible versions are returning ansible_lvm regardless with the twist that when there are no lvm-related entities it is a string ("N/A") rather than a mapping.

This change addresses the change by continuing to check if ansible_lvm is defined with an additional check that it is a mapping.