summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2015-12-15 15:32:32 -0800
committerMatt Wrock <matt@mattwrock.com>2015-12-15 15:32:32 -0800
commit6e1cacacb3b9695772ba529266eb9d47a49345ea (patch)
tree2dbd6345ec2b215b47135bfc3de7ac14a891787d /lib/chef
parent41bd0ba8e88522555e0dbef4ce8159d8d88d1582 (diff)
downloadchef-6e1cacacb3b9695772ba529266eb9d47a49345ea.tar.gz
fixing post merge test breaks
Diffstat (limited to 'lib/chef')
-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 c772a0cfb4..fc90079846 100644
--- a/lib/chef/provider/package/windows.rb
+++ b/lib/chef/provider/package/windows.rb
@@ -49,7 +49,7 @@ class Chef
current_resource.version(:unknown.to_s)
else
current_resource.version(package_provider.installed_version)
- new_resource.version(package_provider.package_version)
+ new_resource.version(package_provider.package_version) if package_provider.package_version
end
current_resource