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
15f40a3d
Commit
15f40a3d
authored
Feb 09, 2015
by
Alexander Golovko
Committed by
Mitchell Hashimoto
Jun 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix disabling vmware tools for ESX
parent
500d83b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
builder/vmware/common/step_upload_tools.go
builder/vmware/common/step_upload_tools.go
+4
-4
No files found.
builder/vmware/common/step_upload_tools.go
View file @
15f40a3d
...
...
@@ -23,6 +23,10 @@ type StepUploadTools struct {
func
(
c
*
StepUploadTools
)
Run
(
state
multistep
.
StateBag
)
multistep
.
StepAction
{
driver
:=
state
.
Get
(
"driver"
)
.
(
Driver
)
if
c
.
ToolsUploadFlavor
==
""
{
return
multistep
.
ActionContinue
}
if
c
.
RemoteType
==
"esx5"
{
if
err
:=
driver
.
ToolsInstall
();
err
!=
nil
{
state
.
Put
(
"error"
,
fmt
.
Errorf
(
"Couldn't mount VMware tools ISO. Please check the 'guest_os_type' in your template.json."
))
...
...
@@ -30,10 +34,6 @@ func (c *StepUploadTools) Run(state multistep.StateBag) multistep.StepAction {
return
multistep
.
ActionContinue
}
if
c
.
ToolsUploadFlavor
==
""
{
return
multistep
.
ActionContinue
}
comm
:=
state
.
Get
(
"communicator"
)
.
(
packer
.
Communicator
)
tools_source
:=
state
.
Get
(
"tools_upload_source"
)
.
(
string
)
ui
:=
state
.
Get
(
"ui"
)
.
(
packer
.
Ui
)
...
...
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