post-processor/vagrant: Extra logging
This commit is contained in:
parent
ac448190e1
commit
eba9834bb1
|
@ -5,6 +5,7 @@ import (
|
||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
"github.com/mitchellh/packer/packer"
|
"github.com/mitchellh/packer/packer"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -75,6 +76,7 @@ func (p *AWSBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact
|
||||||
|
|
||||||
vagrantfileContents := defaultAWSVagrantfile
|
vagrantfileContents := defaultAWSVagrantfile
|
||||||
if p.config.VagrantfileTemplate != "" {
|
if p.config.VagrantfileTemplate != "" {
|
||||||
|
log.Printf("Using vagrantfile template: %s", p.config.VagrantfileTemplate)
|
||||||
f, err := os.Open(p.config.VagrantfileTemplate)
|
f, err := os.Open(p.config.VagrantfileTemplate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
|
|
Loading…
Reference in New Issue