fix datastore path that contains spaces

This commit is contained in:
Megan Marsh 2018-10-09 16:36:55 -07:00
parent 895e7fe111
commit e5e75df033
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func (d *ESX5Driver) CompactDisk(diskPathLocal string) error {
func (d *ESX5Driver) CreateDisk(diskPathLocal string, size string, adapter_type string, typeId string) error {
diskPath := d.datastorePath(diskPathLocal)
diskPath = strings.Replace(diskPath, " ", `\ `, -1)
return d.sh("vmkfstools", "-c", size, "-d", typeId, "-a", adapter_type, diskPath)
}