single quotes

This commit is contained in:
Megan Marsh 2018-10-11 13:57:34 -07:00
parent 9573013d3a
commit 5b9adc0c48
1 changed files with 1 additions and 2 deletions

View File

@ -51,8 +51,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)
diskPath := fmt.Sprintf("'%s'", d.datastorePath(diskPathLocal))
return d.sh("vmkfstools", "-c", size, "-d", typeId, "-a", adapter_type, diskPath)
}