mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-13 18:50:11 -04:00
fix Vet error.
This commit is contained in:
parent
ec6d6098de
commit
487ceac784
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue