From ce8f5c31df1ced661a05e45f98b1d16d875246f6 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 23 Jan 2019 11:04:14 -0800 Subject: [PATCH] escape query as suggested in issue #7200 --- builder/vmware/common/driver_config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/vmware/common/driver_config.go b/builder/vmware/common/driver_config.go index 06cc24765..b4014768f 100644 --- a/builder/vmware/common/driver_config.go +++ b/builder/vmware/common/driver_config.go @@ -69,9 +69,9 @@ func (c *DriverConfig) Validate(SkipExport bool) error { // now, so that we don't fail for a simple mistake after a long // build ovftool := GetOVFTool() - ovfToolArgs := []string{"--verifyOnly", fmt.Sprintf("vi://" + - url.QueryEscape(c.RemoteUser) + ":" + - url.QueryEscape(c.RemotePassword) + "@" + + ovfToolArgs := []string{"--verifyOnly", fmt.Sprintf("vi://%s:%s@%s", + url.QueryEscape(c.RemoteUser), + url.QueryEscape(c.RemotePassword), c.RemoteHost)} var out bytes.Buffer