summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/windows.rb
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-02-29 13:25:24 -0800
committerMatt Wrock <matt@mattwrock.com>2016-02-29 14:33:47 -0800
commit89e333a27dd5cbecd205405046bafe13d6f05563 (patch)
tree82919b87bfa7b0d51d6245d63bfacee9179da491 /lib/chef/provider/package/windows.rb
parent5533dbb2917860dca16765d49079ed01a421fad8 (diff)
downloadchef-89e333a27dd5cbecd205405046bafe13d6f05563.tar.gz
fixes #4639 and returns true from define_resource_requirements for MSIsmsi
Diffstat (limited to 'lib/chef/provider/package/windows.rb')
-rw-r--r--lib/chef/provider/package/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb
index 9772a087bb..02137a5525 100644
--- a/lib/chef/provider/package/windows.rb
+++ b/lib/chef/provider/package/windows.rb
@@ -36,7 +36,7 @@ class Chef
def define_resource_requirements
requirements.assert(:install) do |a|
- a.assertion { new_resource.source unless msi? }
+ a.assertion { new_resource.source || msi? }
a.failure_message Chef::Exceptions::NoWindowsPackageSource, "Source for package #{new_resource.name} must be specified in the resource's source property for package to be installed because the package_name property is used to test for the package installation state for this package type."
end
end