From 148d7c06ab86cb4d579dfca4e6e35e0939781b92 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 7 Nov 2013 20:47:15 -0800 Subject: [PATCH] builder/vmware: make upload dst,src like normal go --- builder/vmware/driver_esx5.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/vmware/driver_esx5.go b/builder/vmware/driver_esx5.go index d1306e6eb..dcfde929b 100644 --- a/builder/vmware/driver_esx5.go +++ b/builder/vmware/driver_esx5.go @@ -57,7 +57,7 @@ func (d *ESX5Driver) Stop(vmxPathLocal string) error { func (d *ESX5Driver) Register(vmxPathLocal string) error { vmxPath := d.datastorePath(vmxPathLocal) - if err := d.upload(vmxPathLocal, vmxPath); err != nil { + if err := d.upload(vmxPath, vmxPathLocal); err != nil { return err } return d.sh("vim-cmd", "solo/registervm", vmxPath) @@ -279,7 +279,7 @@ func (d *ESX5Driver) checkGuestIPHackEnabled() error { return nil } -func (d *ESX5Driver) upload(src, dst string) error { +func (d *ESX5Driver) upload(dst, src string) error { f, err := os.Open(src) if err != nil { return err