Skip to content

Commit

Permalink
Merge pull request #3299 from rmcqueen-cb/issue-3298
Browse files Browse the repository at this point in the history
vcsim: Fix [BUG] vcsim raises TypeError for RemoveSnapshotTask
  • Loading branch information
dougm authored Dec 7, 2023
2 parents 2c07b9b + 4cbd642 commit 12d4105
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 12d4105

Please sign in to comment.