From b7e981c6d15f2cdf589576dc9573261cbfa57f55 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Tue, 30 Jun 2015 14:03:06 +0200 Subject: [PATCH] Fixes issue #2568 When surrounding the version with quotes, even no version (an empty string) will be accepted as parameter. The install.sh script treats an empty version string the same as no when version is set. So it will then just use the latest available version. --- builtin/provisioners/chef/linux_provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/provisioners/chef/linux_provisioner.go b/builtin/provisioners/chef/linux_provisioner.go index 84126fd451..e142884379 100644 --- a/builtin/provisioners/chef/linux_provisioner.go +++ b/builtin/provisioners/chef/linux_provisioner.go @@ -33,7 +33,7 @@ func (p *Provisioner) linuxInstallChefClient( } // Then execute the install.sh scrip to download and install Chef Client - err = p.runCommand(o, comm, fmt.Sprintf("%sbash ./install.sh -v %s", prefix, p.Version)) + err = p.runCommand(o, comm, fmt.Sprintf("%sbash ./install.sh -v %q", prefix, p.Version)) if err != nil { return err }