builder/vmware: verify various paths exist for Workstation
This commit is contained in:
parent
d0a2dac8f0
commit
f6245ae128
|
@ -4,6 +4,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -104,6 +105,18 @@ func (d *Workstation9Driver) Verify() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if _, err := os.Stat(d.AppPath); err != nil {
|
||||||
|
return fmt.Errorf("VMware application not found: %s", d.AppPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, err := os.Stat(d.VmrunPath); err != nil {
|
||||||
|
return fmt.Errorf("'vmrun' application not found: %s", d.VmrunPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, err := os.Stat(d.VdiskManagerPath); err != nil {
|
||||||
|
return fmt.Errorf("'vmrun' application not found: %s", d.VdiskManagerPath)
|
||||||
|
}
|
||||||
|
|
||||||
// Check to see if it APPEARS to be licensed.
|
// Check to see if it APPEARS to be licensed.
|
||||||
if err := workstationCheckLicense(); err != nil {
|
if err := workstationCheckLicense(); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue