diff options
author | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2019-04-30 14:57:29 +0530 |
---|---|---|
committer | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2019-04-30 14:57:29 +0530 |
commit | 3c04064ce8ed89758f38fc8cfa6a930cdf5a8d63 (patch) | |
tree | 2c64d294a4f39708ef391caaff77e53d50e88d7c /lib/chef/knife | |
parent | 52ed3d346c39dada17072e79745265550cb759b8 (diff) | |
download | chef-3c04064ce8ed89758f38fc8cfa6a930cdf5a8d63.tar.gz |
Fixed bootstrap error while using --msi-url option with knife bootstrap winrm
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/core/windows_bootstrap_context.rb | 2 |
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? |