summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-04-30 14:57:29 +0530
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-04-30 14:57:29 +0530
commit3c04064ce8ed89758f38fc8cfa6a930cdf5a8d63 (patch)
tree2c64d294a4f39708ef391caaff77e53d50e88d7c
parent52ed3d346c39dada17072e79745265550cb759b8 (diff)
downloadchef-3c04064ce8ed89758f38fc8cfa6a930cdf5a8d63.tar.gz
Fixed bootstrap error while using --msi-url option with knife bootstrap winrm
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
-rw-r--r--lib/chef/knife/core/windows_bootstrap_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb
index 7aa4c012aa..fc2060cec4 100644
--- a/lib/chef/knife/core/windows_bootstrap_context.rb
+++ b/lib/chef/knife/core/windows_bootstrap_context.rb
@@ -277,7 +277,7 @@ class Chef
# The default msi path has a number of url query parameters - we attempt to substitute
# such parameters in as long as they are provided by the template.
- if @config[:install].nil? || @config[:msi_url].empty?
+ if @config[:msi_url].nil? && @config[:msi_url].empty?
url = "https://www.chef.io/chef/download?p=windows"
url += "&pv=#{machine_os}" unless machine_os.nil?
url += "&m=#{machine_arch}" unless machine_arch.nil?