From 226c244a464d9812317d2c28446bcce54e89e339 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 7 Nov 2013 21:22:12 -0800 Subject: [PATCH] builder/vmware: start/stop ESXi5 VMX with proper path --- builder/vmware/driver_esx5.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/builder/vmware/driver_esx5.go b/builder/vmware/driver_esx5.go index 44394913f..839c77170 100644 --- a/builder/vmware/driver_esx5.go +++ b/builder/vmware/driver_esx5.go @@ -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 {