Patch against 0.24.6rc1.
Signed-off-by: Sean E. Millichamp <[EMAIL PROTECTED]>
---
lib/puppet/type/file/checksum.rb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/puppet/type/file/checksum.rb b/lib/puppet/type/file/checksum.rb
index 27edee1..2e2c38d 100755
--- a/lib/puppet/type/file/checksum.rb
+++ b/lib/puppet/type/file/checksum.rb
@@ -54,7 +54,9 @@ Puppet::Type.type(:file).newproperty(:checksum) do
if FileTest.directory?(@resource[:path])
return :time
elsif @resource[:source]
- self.warning("Files with source set must use md5 as checksum.
Forcing to md5 from %s for %s" % [ value, @resource[:path] ])
+ if value != :md5
+ self.warning("Files with source set must use md5 as
checksum. Forcing to md5 from %s for %s" % [ value, @resource[:path] ])
+ end
return :md5
else
return symbolize(value)
--
1.5.5.1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---