summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-04-30 15:19:39 +0530
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-04-30 15:19:39 +0530
commit5f529f7f5211c4767cd78ec4e96bf82797f8ac9c (patch)
tree5f71025293a943aa42c822679e6950fa7e6e6512
parent3c04064ce8ed89758f38fc8cfa6a930cdf5a8d63 (diff)
downloadchef-5f529f7f5211c4767cd78ec4e96bf82797f8ac9c.tar.gz
Fixed condition
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 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?