This commit is contained in:
		| @@ -16,7 +16,7 @@ type vAPPProperty struct { | ||||
| 	Value string | ||||
| } | ||||
|  | ||||
| func SetVirtualMachineProperties(ctx context.Context, clt *vim25.Client, datacenter, virtualmachine, network string, ovftransport bool) error { | ||||
| func SetVirtualMachineProperties(ctx context.Context, clt *vim25.Client, datacenter, virtualmachine, network string, disableovftransport bool) error { | ||||
| 	finder := find.NewFinder(clt, true) | ||||
|  | ||||
| 	dc, err := finder.Datacenter(ctx, datacenter) | ||||
| @@ -33,11 +33,11 @@ func SetVirtualMachineProperties(ctx context.Context, clt *vim25.Client, datacen | ||||
| 	var moref mo.VirtualMachine | ||||
| 	vm.Properties(ctx, vm.Reference(), []string{"config.vAppConfig"}, &moref) | ||||
|  | ||||
| 	vappconfig := &types.VmConfigSpec{} | ||||
| 	if ovftransport == true { | ||||
| 		vappconfig = &types.VmConfigSpec{ | ||||
| 			OvfEnvironmentTransport: []string{"com.vmware.guestInfo"}, | ||||
| 		} | ||||
| 	vappconfig := &types.VmConfigSpec{ | ||||
| 		OvfEnvironmentTransport: []string{"com.vmware.guestInfo"}, | ||||
| 	} | ||||
| 	if disableovftransport == true { | ||||
| 		vappconfig = &types.VmConfigSpec{} | ||||
| 	} | ||||
|  | ||||
| 	currentvappproperties := moref.Config.VAppConfig.GetVmConfigInfo().Property | ||||
|   | ||||
		Reference in New Issue
	
	Block a user