Merge pull request #3107 from yetanotherchris/patch-1

vsphere post-processor.go - support for spaces
This commit is contained in:
Chris Bednarski 2016-01-25 10:37:06 -08:00
commit e8503b0ff2
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{ args := []string{
fmt.Sprintf("--noSSLVerify=%t", p.config.Insecure), fmt.Sprintf("--noSSLVerify=%t", p.config.Insecure),
"--acceptAllEulas", "--acceptAllEulas",
fmt.Sprintf("--name=%s", p.config.VMName), fmt.Sprintf("--name=\"%s\"", p.config.VMName),
fmt.Sprintf("--datastore=%s", p.config.Datastore), fmt.Sprintf("--datastore=\"%s\"", p.config.Datastore),
fmt.Sprintf("--diskMode=%s", p.config.DiskMode), fmt.Sprintf("--diskMode=\"%s\"", p.config.DiskMode),
fmt.Sprintf("--network=%s", p.config.VMNetwork), fmt.Sprintf("--network=\"%s\"", p.config.VMNetwork),
fmt.Sprintf("--vmFolder=%s", p.config.VMFolder), fmt.Sprintf("--vmFolder=\"%s\"", p.config.VMFolder),
fmt.Sprintf("%s", source), fmt.Sprintf("%s", source),
fmt.Sprintf("%s", ovftool_uri), fmt.Sprintf("%s", ovftool_uri),
} }