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
4cab266e
Commit
4cab266e
authored
Jun 28, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt
parent
fb4b940c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
42 deletions
+40
-42
packer/build.go
packer/build.go
+39
-39
post-processor/vagrant/post-processor.go
post-processor/vagrant/post-processor.go
+1
-1
post-processor/vagrant/vmware.go
post-processor/vagrant/vmware.go
+0
-2
No files found.
packer/build.go
View file @
4cab266e
...
...
@@ -178,7 +178,7 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) {
keepOriginalArtifact
:=
len
(
b
.
postProcessors
)
==
0
// Run the post-processors
PostProcessorRunSeqLoop
:
PostProcessorRunSeqLoop
:
for
_
,
ppSeq
:=
range
b
.
postProcessors
{
priorArtifact
:=
builderArtifact
for
i
,
corePP
:=
range
ppSeq
{
...
...
@@ -248,17 +248,17 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) {
}
return
artifacts
,
err
}
}
func
(
b
*
coreBuild
)
SetDebug
(
val
bool
)
{
func
(
b
*
coreBuild
)
SetDebug
(
val
bool
)
{
if
b
.
prepareCalled
{
panic
(
"prepare has already been called"
)
}
b
.
debug
=
val
}
}
// Cancels the build if it is running.
func
(
b
*
coreBuild
)
Cancel
()
{
// Cancels the build if it is running.
func
(
b
*
coreBuild
)
Cancel
()
{
b
.
builder
.
Cancel
()
}
}
post-processor/vagrant/post-processor.go
View file @
4cab266e
post-processor/vagrant/vmware.go
View file @
4cab266e
...
...
@@ -63,7 +63,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif
}
}
if
p
.
config
.
VagrantfileTemplate
!=
""
{
f
,
err
:=
os
.
Open
(
p
.
config
.
VagrantfileTemplate
)
if
err
!=
nil
{
...
...
@@ -88,7 +87,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif
vf
.
Close
()
}
// Create the metadata
metadata
:=
map
[
string
]
string
{
"provider"
:
"vmware"
}
if
err
:=
WriteMetadata
(
dir
,
metadata
);
err
!=
nil
{
...
...
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