Only convert VirtualDiskFix for #57653 clone_with_convert is failing

pull/59380/head
Evert Mulder 5 years ago committed by Gonéri Le Bouder
parent e9b1e36d76
commit 66d12f6f1e

@ -2214,7 +2214,7 @@ class PyVmomiHelper(PyVmomi):
# Convert disk present in template if is set # Convert disk present in template if is set
if self.params['convert']: if self.params['convert']:
for device in vm_obj.config.hardware.device: for device in vm_obj.config.hardware.device:
if hasattr(device.backing, 'fileName'): if isinstance(device, vim.vm.device.VirtualDisk):
disk_locator = vim.vm.RelocateSpec.DiskLocator() disk_locator = vim.vm.RelocateSpec.DiskLocator()
disk_locator.diskBackingInfo = vim.vm.device.VirtualDisk.FlatVer2BackingInfo() disk_locator.diskBackingInfo = vim.vm.device.VirtualDisk.FlatVer2BackingInfo()
if self.params['convert'] in ['thin']: if self.params['convert'] in ['thin']:

@ -91,9 +91,8 @@
setup_virtualmachines: true setup_virtualmachines: true
- block: - block:
- include: boot_firmware_d1_c1_f0.yml - include: boot_firmware_d1_c1_f0.yml
# Failing, see: https://github.com/ansible/ansible/issues/57653 - include: clone_with_convert.yml
# - include: clone_with_convert.yml - include: clone_customize_guest_test.yml
# - include: clone_customize_guest_test.yml
- include: max_connections.yml - include: max_connections.yml
- include: mem_reservation.yml - include: mem_reservation.yml
always: always:

Loading…
Cancel
Save