Commit 4cab266e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

fmt

parent fb4b940c
...@@ -178,7 +178,7 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) { ...@@ -178,7 +178,7 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) {
keepOriginalArtifact := len(b.postProcessors) == 0 keepOriginalArtifact := len(b.postProcessors) == 0
// Run the post-processors // Run the post-processors
PostProcessorRunSeqLoop: PostProcessorRunSeqLoop:
for _, ppSeq := range b.postProcessors { for _, ppSeq := range b.postProcessors {
priorArtifact := builderArtifact priorArtifact := builderArtifact
for i, corePP := range ppSeq { for i, corePP := range ppSeq {
...@@ -248,17 +248,17 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) { ...@@ -248,17 +248,17 @@ func (b *coreBuild) Run(originalUi Ui, cache Cache) ([]Artifact, error) {
} }
return artifacts, err return artifacts, err
} }
func (b *coreBuild) SetDebug(val bool) { func (b *coreBuild) SetDebug(val bool) {
if b.prepareCalled { if b.prepareCalled {
panic("prepare has already been called") panic("prepare has already been called")
} }
b.debug = val b.debug = val
} }
// Cancels the build if it is running. // Cancels the build if it is running.
func (b *coreBuild) Cancel() { func (b *coreBuild) Cancel() {
b.builder.Cancel() b.builder.Cancel()
} }
...@@ -63,7 +63,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif ...@@ -63,7 +63,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif
} }
} }
if p.config.VagrantfileTemplate != "" { if p.config.VagrantfileTemplate != "" {
f, err := os.Open(p.config.VagrantfileTemplate) f, err := os.Open(p.config.VagrantfileTemplate)
if err != nil { if err != nil {
...@@ -88,7 +87,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif ...@@ -88,7 +87,6 @@ func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artif
vf.Close() vf.Close()
} }
// Create the metadata // Create the metadata
metadata := map[string]string{"provider": "vmware"} metadata := map[string]string{"provider": "vmware"}
if err := WriteMetadata(dir, metadata); err != nil { if err := WriteMetadata(dir, metadata); err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment