Update post-processor.go

Added support for spaces for vm folders, datastore names etc. in the ovftool command line arguments.
This commit is contained in:
Chris S 2016-01-25 17:00:30 +00:00
parent cd4a70f846
commit 195405ca5b
1 changed files with 5 additions and 5 deletions

View File

@ -122,11 +122,11 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
args := []string{
fmt.Sprintf("--noSSLVerify=%t", p.config.Insecure),
"--acceptAllEulas",
fmt.Sprintf("--name=%s", p.config.VMName),
fmt.Sprintf("--datastore=%s", p.config.Datastore),
fmt.Sprintf("--diskMode=%s", p.config.DiskMode),
fmt.Sprintf("--network=%s", p.config.VMNetwork),
fmt.Sprintf("--vmFolder=%s", p.config.VMFolder),
fmt.Sprintf("--name=\"%s\"", p.config.VMName),
fmt.Sprintf("--datastore=\"%s\"", p.config.Datastore),
fmt.Sprintf("--diskMode=\"%s\"", p.config.DiskMode),
fmt.Sprintf("--network=\"%s\"", p.config.VMNetwork),
fmt.Sprintf("--vmFolder=\"%s\"", p.config.VMFolder),
fmt.Sprintf("%s", source),
fmt.Sprintf("%s", ovftool_uri),
}