post-processor/vagrant: Extra logging

This commit is contained in:
Mitchell Hashimoto 2013-07-05 10:41:54 -07:00
parent ac448190e1
commit eba9834bb1
1 changed files with 2 additions and 0 deletions

View File

@ -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