mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-10 17:20:26 -04:00
builder/vmware: Make vmx path absolute when checking if running
This commit is contained in:
parent
174ae65a12
commit
ccfb4664cf
1 changed files with 5 additions and 0 deletions
|
|
@ -46,6 +46,11 @@ func (d *Fusion5Driver) CreateDisk(output string, size string) error {
|
|||
}
|
||||
|
||||
func (d *Fusion5Driver) IsRunning(vmxPath string) (bool, error) {
|
||||
vmxPath, err := filepath.Abs(vmxPath)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
stdout := new(bytes.Buffer)
|
||||
cmd := exec.Command(d.vmrunPath(), "-T", "fusion", "list")
|
||||
cmd.Stdout = stdout
|
||||
|
|
|
|||
Loading…
Reference in a new issue