updated conditional logic for vm-mount-disks