mirror of https://github.com/ansible/ansible.git
vmware_guest: clone VM with attached CDROM
If a VM has an attached CDROM, `backing` attribute of the CDROM will be defined. As a result, we cannot just loop `vm_obj.config.hardware.device` and check for the existance of the attribute to decide if the entry is a harddrive. Instead, we check the type of the device, and only keep the `vim.vm.device.VirtualDisk` disk. This issue is actually breaking our test-suite with regular environment because we keep a Fedora ISO attached to the VM.pull/59777/head
parent
5bddd2f04a
commit
1ec155e773
Loading…
Reference in New Issue