summaryrefslogtreecommitdiff
path: root/lib/chef/provider/remote_file.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2013-04-02 16:58:58 -0700
committerLamont Granquist <lamont@opscode.com>2013-04-02 16:58:58 -0700
commit8c2f2011b6c334f4c5483bea3769383a63a018f4 (patch)
treecd5a5681fb186c72caf7347f5500e87f27fe15cf /lib/chef/provider/remote_file.rb
parentd877f157ece0e527fd8bbeee455294ab8b7cf220 (diff)
downloadchef-8c2f2011b6c334f4c5483bea3769383a63a018f4.tar.gz
work around inherited specs being broken
Diffstat (limited to 'lib/chef/provider/remote_file.rb')
-rw-r--r--lib/chef/provider/remote_file.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider/remote_file.rb b/lib/chef/provider/remote_file.rb
index b1cc2aa13b..e631574c89 100644
--- a/lib/chef/provider/remote_file.rb
+++ b/lib/chef/provider/remote_file.rb
@@ -55,6 +55,10 @@ class Chef
def do_contents_changes
super
+ update_new_resource_checksum
+ end
+
+ def update_new_resource_checksum
return if tempfile.nil? # we 304'd, so have no etags or last-modified
unless whyrun_mode?
@new_resource.checksum(checksum(@new_resource.path)) unless @new_resource.checksum