summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2009-11-04 17:57:20 -0800
committerJames Turnbull <james@lovedthanlost.net>2009-11-10 21:58:50 +1100
commit136949da70f1a6715734faa6ac3c464f386fccfb (patch)
treeb0446e2651ba9ee1bf2ab73128d0284a255fb8fc /lib/puppet
parentcb3e5e10d76a4a0f44e16c5bf36c69b65ae18fbb (diff)
downloadpuppet-136949da70f1a6715734faa6ac3c464f386fccfb.tar.gz
puppet-136949da70f1a6715734faa6ac3c464f386fccfb.tar.xz
puppet-136949da70f1a6715734faa6ac3c464f386fccfb.zip
Fixing #2631 show_diff sometimes doesn't happen
This patch fixes a code-path in Puppet::Type::File::Content#insync? that was failing to show a diff when the content's source came from a template. I was only able to reproduce one of the two such failures that Malcolm Howe reported, but I think it's likely that they were both caused by this same bug. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/file/content.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/file/content.rb b/lib/puppet/type/file/content.rb
index 7f1908394..36e6c4172 100755
--- a/lib/puppet/type/file/content.rb
+++ b/lib/puppet/type/file/content.rb
@@ -96,7 +96,7 @@ module Puppet
return true if ! @resource.replace?
if self.should
- return super
+ result = super
elsif source = resource.parameter(:source)
fail "Got a remote source with no checksum" unless source.checksum
result = (is == source.checksum)