Update post-processor.go

the ovftool can't refer to an object vi address without a "/" at the end of the address
This commit is contained in:
hkhkhk1987 2014-10-24 15:21:57 +08:00
parent 67fad6c429
commit f61cc3f99c
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
fmt.Sprintf("--network=%s", p.config.VMNetwork),
fmt.Sprintf("--vmFolder=%s", p.config.VMFolder),
fmt.Sprintf("%s", vmx),
fmt.Sprintf("vi://%s:%s@%s/%s/host/%s/Resources/%s",
fmt.Sprintf("vi://%s:%s@%s/%s/host/%s/Resources/%s/",
url.QueryEscape(p.config.Username),
p.config.Password,
p.config.Host,