Skip to content

Commit

Permalink
vcsim: Resolve issue making device changes on clone (resolves vmware#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeot authored and Zacharias Taubert committed Jan 25, 2019
1 parent ffee90f commit 6513992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulator/virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()},
Expand Down

0 comments on commit 6513992

Please sign in to comment.