Commit 781332b2 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: fix local output dir exists check

parent 2d0270ac
...@@ -23,7 +23,7 @@ type localOutputDir struct { ...@@ -23,7 +23,7 @@ type localOutputDir struct {
func (d *localOutputDir) DirExists() (bool, error) { func (d *localOutputDir) DirExists() (bool, error) {
_, err := os.Stat(d.dir) _, err := os.Stat(d.dir)
return err == nil, err return err == nil, nil
} }
func (d *localOutputDir) MkdirAll() error { func (d *localOutputDir) MkdirAll() error {
......
...@@ -66,8 +66,10 @@ func (s *stepPrepareOutputDir) outputDir(state multistep.StateBag) (dir OutputDi ...@@ -66,8 +66,10 @@ func (s *stepPrepareOutputDir) outputDir(state multistep.StateBag) (dir OutputDi
switch d := driver.(type) { switch d := driver.(type) {
case OutputDir: case OutputDir:
log.Printf("Using driver as the OutputDir implementation")
dir = d dir = d
default: default:
log.Printf("Using localOutputDir implementation")
dir = new(localOutputDir) dir = new(localOutputDir)
} }
......
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