summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/puppet/type/file/content.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/file/content.rb b/lib/puppet/type/file/content.rb
index 032c7c839..0f26a8561 100755
--- a/lib/puppet/type/file/content.rb
+++ b/lib/puppet/type/file/content.rb
@@ -39,8 +39,8 @@ module Puppet
# Checksums need to invert how changes are printed.
def change_to_s(currentvalue, newvalue)
# Our "new" checksum value is provided by the source.
- unless source = resource.parameter(:source) and newvalue = source.checksum
- newvalue = "unknown checksum"
+ if source = resource.parameter(:source)
+ newvalue = source.checksum || "unknown checksum"
end
if currentvalue == :absent
return "defined content as '%s'" % [newvalue]