fmt
This commit is contained in:
parent
f5003c4e19
commit
8b25acfab6
|
@ -79,12 +79,14 @@ func (p *AWSBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact
|
||||||
log.Printf("Using vagrantfile template: %s", 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 {
|
||||||
|
err = fmt.Errorf("error opening vagrantfile template: %s", err)
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
|
||||||
contents, err := ioutil.ReadAll(f)
|
contents, err := ioutil.ReadAll(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
err = fmt.Errorf("error reading vagrantfile template: %s", err)
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ func DirToBox(dst, dir string) error {
|
||||||
|
|
||||||
// Skip directories
|
// Skip directories
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
log.Printf("Skiping directory '%s' for box '%s'", path, dst)
|
log.Printf("Skipping directory '%s' for box '%s'", path, dst)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue