mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-02 04:34:00 -04:00
fix datastore path that contains spaces
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user