mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 10:14:01 -04:00
builder/vmware: Make vmx path absolute when checking if running
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user