godeps: update vmware/govmomi to v0.20 release
This commit is contained in:
7
vendor/github.com/vmware/govmomi/simulator/task_manager.go
generated
vendored
7
vendor/github.com/vmware/govmomi/simulator/task_manager.go
generated
vendored
@@ -20,6 +20,8 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/vmware/govmomi/object"
|
||||
"github.com/vmware/govmomi/simulator/esx"
|
||||
"github.com/vmware/govmomi/simulator/vpx"
|
||||
"github.com/vmware/govmomi/vim25/mo"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
@@ -34,6 +36,11 @@ type TaskManager struct {
|
||||
func NewTaskManager(ref types.ManagedObjectReference) object.Reference {
|
||||
s := &TaskManager{}
|
||||
s.Self = ref
|
||||
if Map.IsESX() {
|
||||
s.Description = esx.Description
|
||||
} else {
|
||||
s.Description = vpx.Description
|
||||
}
|
||||
Map.AddHandler(s)
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user