From f61cc3f99c1819f985a0f401f1871a5c64b1f425 Mon Sep 17 00:00:00 2001 From: hkhkhk1987 Date: Fri, 24 Oct 2014 15:21:57 +0800 Subject: [PATCH] Update post-processor.go the ovftool can't refer to an object vi address without a "/" at the end of the address --- post-processor/vsphere/post-processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-processor/vsphere/post-processor.go b/post-processor/vsphere/post-processor.go index c9a1b6018..81dc27f87 100644 --- a/post-processor/vsphere/post-processor.go +++ b/post-processor/vsphere/post-processor.go @@ -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,