Merge "Allow Kayobe to wipe virtualized disks"

This commit is contained in:
Zuul 2019-10-25 13:02:57 +00:00 committed by Gerrit Code Review
commit 6066300097

View File

@ -16,7 +16,7 @@
shell: >
lsblk -i -o NAME,MOUNTPOINT | awk \
'/^ *[|`]-/ && NF > 1 { mounts[master_dev] = mounts[master_dev] $2 " " }
/^(nvme|sd)/ && NF == 1 { master_dev = $1; mounts[master_dev] = "" }
/^(nvme|sd|vd)/ && NF == 1 { master_dev = $1; mounts[master_dev] = "" }
END { for (dev in mounts) if (mounts[dev] == "") print dev }'
register: unmounted_devices
changed_when: False