fix return

This commit is contained in:
Joshua Foster 2020-07-02 12:55:10 -04:00
parent e4dffeed35
commit 500ec5ccc7
1 changed files with 2 additions and 2 deletions

View File

@ -802,7 +802,6 @@ func (vm *VirtualMachine) addDevice(device types.BaseVirtualDevice) error {
func (vm *VirtualMachine) AddConfigParams(params map[string]string, info *types.ToolsConfigInfo) error { func (vm *VirtualMachine) AddConfigParams(params map[string]string, info *types.ToolsConfigInfo) error {
var confSpec types.VirtualMachineConfigSpec var confSpec types.VirtualMachineConfigSpec
var err error
var ov []types.BaseOptionValue var ov []types.BaseOptionValue
for k, v := range params { for k, v := range params {
@ -823,9 +822,10 @@ func (vm *VirtualMachine) AddConfigParams(params map[string]string, info *types.
} }
_, err = task.WaitForResult(vm.driver.ctx, nil) _, err = task.WaitForResult(vm.driver.ctx, nil)
return err
} }
return err return nil
} }
func (vm *VirtualMachine) Export() (*nfc.Lease, error) { func (vm *VirtualMachine) Export() (*nfc.Lease, error) {