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:
parent
cd4a70f846
commit
195405ca5b
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue