Commit 47ac6897 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: start/stop ESXi5 VMX with proper path

parent ba8a0dbe
......@@ -51,11 +51,13 @@ func (d *ESX5Driver) IsRunning(vmxPathLocal string) (bool, error) {
}
func (d *ESX5Driver) Start(vmxPathLocal string, headless bool) error {
return d.sh("vim-cmd", "vmsvc/power.on", d.datastorePath(vmxPathLocal))
vmxPath := filepath.Join(d.outputDir, filepath.Base(vmxPathLocal))
return d.sh("vim-cmd", "vmsvc/power.on", vmxPath)
}
func (d *ESX5Driver) Stop(vmxPathLocal string) error {
return d.sh("vim-cmd", "vmsvc/power.off", d.datastorePath(vmxPathLocal))
vmxPath := filepath.Join(d.outputDir, filepath.Base(vmxPathLocal))
return d.sh("vim-cmd", "vmsvc/power.off", vmxPath)
}
func (d *ESX5Driver) Register(vmxPathLocal string) error {
......
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