diff options
author | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2019-04-30 15:19:39 +0530 |
---|---|---|
committer | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2019-04-30 15:19:39 +0530 |
commit | 5f529f7f5211c4767cd78ec4e96bf82797f8ac9c (patch) | |
tree | 5f71025293a943aa42c822679e6950fa7e6e6512 /lib | |
parent | 3c04064ce8ed89758f38fc8cfa6a930cdf5a8d63 (diff) | |
download | chef-5f529f7f5211c4767cd78ec4e96bf82797f8ac9c.tar.gz |
Fixed condition
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'lib')
-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 fc2060cec4..b1204aeb09 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[:msi_url].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? |