diff options
author | Aliasgar16 <aliasgar.batterywala@msystechnologies.com> | 2016-09-21 07:02:58 +0530 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2016-09-20 18:32:58 -0700 |
commit | 555abc008946f8b239a79809104b07062f9082ae (patch) | |
tree | e7b85f292f9bbf7a19ad9852c7309638bf04c5ad /lib/chef/provider/package/windows.rb | |
parent | 19b3900b5f6a24009b8f14eb09d4105e721b9262 (diff) | |
download | chef-555abc008946f8b239a79809104b07062f9082ae.tar.gz |
Fixed undefined short_cksum method issue and checksum in uppercase issue for windows_package resource. (#5332)
* Fixed undefined short_cksum method issue and checksum in uppercase issue for windows_package resource.
* Added RSpecs for the changes done here.
* Fixed RSpecs issues.
Diffstat (limited to 'lib/chef/provider/package/windows.rb')
-rw-r--r-- | lib/chef/provider/package/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb index 753d3c279e..b11bcf5192 100644 --- a/lib/chef/provider/package/windows.rb +++ b/lib/chef/provider/package/windows.rb @@ -250,7 +250,7 @@ class Chef def validate_content! if new_resource.checksum source_checksum = checksum(source_location) - if new_resource.checksum != source_checksum + if new_resource.checksum.downcase != source_checksum raise Chef::Exceptions::ChecksumMismatch.new(short_cksum(new_resource.checksum), short_cksum(source_checksum)) end end |