builder/vmware: fix local output dir exists check

This commit is contained in:
Mitchell Hashimoto
2013-11-08 11:48:04 -08:00
parent a436aa2e9c
commit 1915c00525
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ type localOutputDir struct {
func (d *localOutputDir) DirExists() (bool, error) {
_, err := os.Stat(d.dir)
return err == nil, err
return err == nil, nil
}
func (d *localOutputDir) MkdirAll() error {
@@ -66,8 +66,10 @@ func (s *stepPrepareOutputDir) outputDir(state multistep.StateBag) (dir OutputDi
switch d := driver.(type) {
case OutputDir:
log.Printf("Using driver as the OutputDir implementation")
dir = d
default:
log.Printf("Using localOutputDir implementation")
dir = new(localOutputDir)
}