Commit 148d7c06 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: make upload dst,src like normal go

parent 2c8843b4
......@@ -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
......
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