fix Vet error.

This commit is contained in:
Megan Marsh 2017-11-13 11:45:31 -08:00
parent ec6d6098de
commit 487ceac784
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ func datastorePath(vm *object.VirtualMachine) (*object.DatastorePath, error) {
datastore := re.FindStringSubmatch(disk)[1]
vmxPath := path.Join("/", path.Dir(strings.Split(disk, " ")[1]), vm.Name()+".vmx")
return &object.DatastorePath{datastore, vmxPath}, nil
return &object.DatastorePath{
Datastore: datastore,
Path: vmxPath,
}, nil
}
// We will use the virtual machine created by vmware-iso builder