Skip to content

Commit

Permalink
vcsim: Fix [BUG] vcsim raises TypeError for RemoveSnapshotTask
Browse files Browse the repository at this point in the history
Closes: #3298
  • Loading branch information
rmcqueen committed Dec 7, 2023
1 parent 44d6f8d commit 4cbd642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulator/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (v *VirtualMachineSnapshot) removeSnapshotFiles(ctx *Context) types.BaseMet
}

func (v *VirtualMachineSnapshot) RemoveSnapshotTask(ctx *Context, req *types.RemoveSnapshot_Task) soap.HasFault {
task := CreateTask(v, "removeSnapshot", func(t *Task) (types.AnyType, types.BaseMethodFault) {
task := CreateTask(v.Vm, "removeSnapshot", func(t *Task) (types.AnyType, types.BaseMethodFault) {
var changes []types.PropertyChange

vm := ctx.Map.Get(v.Vm).(*VirtualMachine)
Expand Down

0 comments on commit 4cbd642

Please sign in to comment.