Merge pull request #6823 from hashicorp/fix_6794

fix datastore path that contains spaces
pull/6777/merge
Megan Marsh 8 years ago committed by GitHub
commit f331327f24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}

Loading…
Cancel
Save