summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/puppet/type/pfile/checksum.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/type/pfile/checksum.rb b/lib/puppet/type/pfile/checksum.rb
index c00fd7f7f..e43bb3d74 100755
--- a/lib/puppet/type/pfile/checksum.rb
+++ b/lib/puppet/type/pfile/checksum.rb
@@ -103,7 +103,12 @@ module Puppet
if hash.include?(sumtype)
#self.notice "Found checksum %s for %s" %
# [hash[sumtype] ,@parent[:path]]
- return hash[sumtype]
+ sum = hash[sumtype]
+
+ unless sum =~ /^\{\w+\}/
+ sum = "{%s}%s" % [sumtype, sum]
+ end
+ return sum
elsif hash.empty?
#self.notice "Could not find sum of type %s" % sumtype
return :nosum