Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
c2506e94
Commit
c2506e94
authored
Aug 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: fix windows builds
parent
5ee1b1c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
builder/vmware/driver_workstation9_windows.go
builder/vmware/driver_workstation9_windows.go
+7
-7
No files found.
builder/vmware/driver_workstation9_windows.go
View file @
c2506e94
...
...
@@ -27,7 +27,7 @@ func workstationFindVdiskManager() (string, error) {
}
func
workstationFindVMware
()
(
string
,
error
)
{
path
,
_
:=
exec
.
LookPath
(
"vmware.exe"
)
path
,
err
:=
exec
.
LookPath
(
"vmware.exe"
)
if
err
==
nil
{
return
path
,
nil
}
...
...
@@ -36,7 +36,7 @@ func workstationFindVMware() (string, error) {
}
func
workstationFindVmrun
()
(
string
,
error
)
{
path
,
_
:=
exec
.
LookPath
(
"vmrun.exe"
)
path
,
err
:=
exec
.
LookPath
(
"vmrun.exe"
)
if
err
==
nil
{
return
path
,
nil
}
...
...
@@ -45,7 +45,7 @@ func workstationFindVmrun() (string, error) {
}
func
workstationToolsIsoPath
(
flavor
string
)
string
{
return
findFile
(
flavor
+
".iso"
,
workstationProgramFilePaths
())
,
nil
return
findFile
(
flavor
+
".iso"
,
workstationProgramFilePaths
())
}
func
workstationDhcpLeasesPath
(
device
string
)
string
{
...
...
@@ -56,11 +56,11 @@ func workstationDhcpLeasesPath(device string) string {
return
path
}
return
findFile
(
"vmnetdhcp.leases"
,
workstationDataFilePaths
())
,
nil
return
findFile
(
"vmnetdhcp.leases"
,
workstationDataFilePaths
())
}
func
workstationVmnetnatConfPath
()
string
{
return
findFile
(
"vmnetnat.conf"
,
workstationDataFilePaths
())
,
nil
return
findFile
(
"vmnetnat.conf"
,
workstationDataFilePaths
())
}
// See http://blog.natefinch.com/2012/11/go-win-stuff.html
...
...
@@ -184,7 +184,7 @@ func workstationProgramFilePaths() []string {
// workstationDataFilePaths returns a list of paths that are eligible
// to contain data files we may want such as vmnet NAT configuration files.
func
workstationDataFilePaths
()
[]
string
{
leasesPath
,
err
:=
workstation
VmnetDhcpLeasesPathFrom
Registry
()
leasesPath
,
err
:=
workstation
DhcpLeasesPath
Registry
()
if
err
!=
nil
{
log
.
Printf
(
"Error getting DHCP leases path: %s"
,
err
)
}
...
...
@@ -198,7 +198,7 @@ func workstationDataFilePaths() []string {
paths
=
append
(
paths
,
os
.
Getenv
(
"VMWARE_DATA"
))
}
if
p
ath
!=
""
{
if
leasesP
ath
!=
""
{
paths
=
append
(
paths
,
leasesPath
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment