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
d420947d
Commit
d420947d
authored
Apr 06, 2014
by
Ross Smith II
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added %s for productVersion param
parent
72924f0d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
builder/vmware/common/driver.go
builder/vmware/common/driver.go
+2
-2
builder/vmware/common/driver_workstation10_windows.go
builder/vmware/common/driver_workstation10_windows.go
+1
-1
builder/vmware/common/driver_workstation9.go
builder/vmware/common/driver_workstation9.go
+1
-1
builder/vmware/common/driver_workstation_unix.go
builder/vmware/common/driver_workstation_unix.go
+1
-1
No files found.
builder/vmware/common/driver.go
View file @
d420947d
...
...
@@ -148,7 +148,7 @@ func normalizeVersion(version string) (string, error) {
i
,
err
:=
strconv
.
Atoi
(
version
)
if
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"VMWare
WS
version '%s' is not numeric"
,
version
)
"VMWare version '%s' is not numeric"
,
version
)
}
return
fmt
.
Sprintf
(
"%02d"
,
i
),
nil
...
...
@@ -167,7 +167,7 @@ func compareVersions(versionFound string, versionWanted string) error {
if
found
<
wanted
{
return
fmt
.
Errorf
(
"VMWare WS %s, or greater, is required. Found version: %s"
,
versionWanted
,
versionFound
)
"VMWare WS
version
%s, or greater, is required. Found version: %s"
,
versionWanted
,
versionFound
)
}
return
nil
...
...
builder/vmware/common/driver_workstation10_windows.go
View file @
d420947d
...
...
@@ -27,7 +27,7 @@ func workstationVerifyVersion(version string) error {
matches
:=
versionRe
.
FindStringSubmatch
(
productVersion
)
if
matches
==
nil
{
return
fmt
.
Errorf
(
"Could not find VMware WS version in registry key %s/subkey: %s"
,
key
,
subkey
,
productVersion
)
`Could not find a VMware WS version in registry key %s\%s: '%s'`
,
key
,
subkey
,
productVersion
)
}
log
.
Printf
(
"Detected VMware WS version: %s"
,
matches
[
1
])
...
...
builder/vmware/common/driver_workstation9.go
View file @
d420947d
...
...
@@ -23,7 +23,7 @@ type Workstation9Driver struct {
}
func
(
d
*
Workstation9Driver
)
Clone
(
dst
,
src
string
)
error
{
return
errors
.
New
(
"Cloning is not supported with VMWare WS
9. Please use VMWare WS
10, or greater."
)
return
errors
.
New
(
"Cloning is not supported with VMWare WS
version 9. Please use VMWare WS version
10, or greater."
)
}
func
(
d
*
Workstation9Driver
)
CompactDisk
(
diskPath
string
)
error
{
...
...
builder/vmware/common/driver_workstation_unix.go
View file @
d420947d
...
...
@@ -53,7 +53,7 @@ func workstationVmnetnatConfPath() string {
func
workstationVerifyVersion
(
version
string
)
error
{
if
runtime
.
GOOS
!=
"linux"
{
return
fmt
.
Errorf
(
"The VMWare WS %s driver is only supported on Linux, and Windows, at the moment. Your OS: %s"
,
version
,
runtime
.
GOOS
)
return
fmt
.
Errorf
(
"The VMWare WS
version
%s driver is only supported on Linux, and Windows, at the moment. Your OS: %s"
,
version
,
runtime
.
GOOS
)
}
//TODO(pmyjavec) there is a better way to find this, how?
...
...
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