Commit ccfb4664 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: Make vmx path absolute when checking if running

parent 174ae65a
...@@ -46,6 +46,11 @@ func (d *Fusion5Driver) CreateDisk(output string, size string) error { ...@@ -46,6 +46,11 @@ func (d *Fusion5Driver) CreateDisk(output string, size string) error {
} }
func (d *Fusion5Driver) IsRunning(vmxPath string) (bool, error) { func (d *Fusion5Driver) IsRunning(vmxPath string) (bool, error) {
vmxPath, err := filepath.Abs(vmxPath)
if err != nil {
return false, err
}
stdout := new(bytes.Buffer) stdout := new(bytes.Buffer)
cmd := exec.Command(d.vmrunPath(), "-T", "fusion", "list") cmd := exec.Command(d.vmrunPath(), "-T", "fusion", "list")
cmd.Stdout = stdout cmd.Stdout = stdout
......
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