builder/vmware: esx file check works properly
This commit is contained in:
parent
05bece2482
commit
a665e01ba8
@ -201,7 +201,7 @@ func (d *ESX5Driver) SSHAddress(state multistep.StateBag) (string, error) {
|
||||
|
||||
func (d *ESX5Driver) DirExists(path string) (bool, error) {
|
||||
err := d.sh("test", "-e", d.datastorePath(path))
|
||||
return err == nil, err
|
||||
return err == nil, nil
|
||||
}
|
||||
|
||||
func (d *ESX5Driver) MkdirAll(path string) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user