- Updated vmware/govmomi godep (Needs for vsan support)
- Fix unmount for vsanDatastore - Add support for vsan datastore
This commit is contained in:
21
vendor/github.com/vmware/govmomi/object/virtual_app.go
generated
vendored
21
vendor/github.com/vmware/govmomi/object/virtual_app.go
generated
vendored
@@ -17,13 +17,10 @@ limitations under the License.
|
||||
package object
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/vmware/govmomi/vim25"
|
||||
"github.com/vmware/govmomi/vim25/methods"
|
||||
"github.com/vmware/govmomi/vim25/mo"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
|
||||
@@ -37,24 +34,6 @@ func NewVirtualApp(c *vim25.Client, ref types.ManagedObjectReference) *VirtualAp
|
||||
}
|
||||
}
|
||||
|
||||
func (p VirtualApp) String() string {
|
||||
if p.InventoryPath == "" {
|
||||
return p.Common.String()
|
||||
}
|
||||
return fmt.Sprintf("%v @ %v", p.Common, p.InventoryPath)
|
||||
}
|
||||
|
||||
func (p VirtualApp) Name(ctx context.Context) (string, error) {
|
||||
var o mo.VirtualApp
|
||||
|
||||
err := p.Properties(ctx, p.Reference(), []string{"name"}, &o)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return o.Name, nil
|
||||
}
|
||||
|
||||
func (p VirtualApp) CreateChildVM_Task(ctx context.Context, config types.VirtualMachineConfigSpec, host *HostSystem) (*Task, error) {
|
||||
req := types.CreateChildVM_Task{
|
||||
This: p.Reference(),
|
||||
|
||||
Reference in New Issue
Block a user