diff --git a/simulator/virtual_machine.go b/simulator/virtual_machine.go index 8c0236cb4..853602333 100644 --- a/simulator/virtual_machine.go +++ b/simulator/virtual_machine.go @@ -1475,7 +1475,7 @@ func (vm *VirtualMachine) CloneVMTask(ctx *Context, req *types.CloneVM_Task) soa ref := ctask.Info.Result.(types.ManagedObjectReference) clone := Map.Get(ref).(*VirtualMachine) - clone.configureDevices(&types.VirtualMachineConfigSpec{DeviceChange: req.Spec.Location.DeviceChange}) + clone.configureDevices(&types.VirtualMachineConfigSpec{DeviceChange: req.Spec.Config.DeviceChange}) ctx.postEvent(&types.VmClonedEvent{ VmCloneEvent: types.VmCloneEvent{VmEvent: clone.event()},