- Updated vmware/govmomi godep (Needs for vsan support)
- Fix unmount for vsanDatastore - Add support for vsan datastore
This commit is contained in:
20
vendor/github.com/vmware/govmomi/object/host_system.go
generated
vendored
20
vendor/github.com/vmware/govmomi/object/host_system.go
generated
vendored
@@ -29,15 +29,6 @@ import (
|
||||
|
||||
type HostSystem struct {
|
||||
Common
|
||||
|
||||
InventoryPath string
|
||||
}
|
||||
|
||||
func (h HostSystem) String() string {
|
||||
if h.InventoryPath == "" {
|
||||
return h.Common.String()
|
||||
}
|
||||
return fmt.Sprintf("%v @ %v", h.Common, h.InventoryPath)
|
||||
}
|
||||
|
||||
func NewHostSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostSystem {
|
||||
@@ -46,17 +37,6 @@ func NewHostSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostSyste
|
||||
}
|
||||
}
|
||||
|
||||
func (h HostSystem) Name(ctx context.Context) (string, error) {
|
||||
var mh mo.HostSystem
|
||||
|
||||
err := h.Properties(ctx, h.Reference(), []string{"name"}, &mh)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return mh.Name, nil
|
||||
}
|
||||
|
||||
func (h HostSystem) ConfigManager() *HostConfigManager {
|
||||
return NewHostConfigManager(h.c, h.Reference())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user