quote vmx path in register function

This commit is contained in:
Megan Marsh 2018-10-12 09:58:24 -07:00
parent 8cba32d526
commit 3f591d78f3
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func (d *ESX5Driver) Register(vmxPathLocal string) error {
if err := d.upload(vmxPath, vmxPathLocal); err != nil {
return err
}
r, err := d.run(nil, "vim-cmd", "solo/registervm", vmxPath)
r, err := d.run(nil, "vim-cmd", "solo/registervm", fmt.Sprintf("\"%s\"", vmxPath))
if err != nil {
return err
}