Ugh, another case of trying to fix auditing breaking other stuff.  I'm
looking into this.  I've got a quick and dirty patch that fixes this,
but I want to see if there's a better way.

diff --git a/lib/puppet/type/file/content.rb b/lib/puppet/type/file/content.rb
index 5223ee3..430d5a2 100755
--- a/lib/puppet/type/file/content.rb
+++ b/lib/puppet/type/file/content.rb
@@ -166,7 +166,7 @@ module Puppet
     def each_chunk_from(source_or_content)
       if source_or_content.is_a?(String)
         yield source_or_content
-      elsif source_or_content.nil? && resource.parameter(:ensure) &&
[:present, :file].include?(resource.parameter(:ensure).value)
+      elsif source_or_content.nil? && resource.parameter(:ensure) &&
[:present, :file].include?(resource.parameter(:ensure).value) &&
resource.parameter(:content) =~ /\{md5\}/
         yield ''
       elsif source_or_content.nil?
         yield read_file_from_filebucket

On Tue, Mar 1, 2011 at 2:12 PM, donavan <[email protected]> wrote:
> I opened a ticket for a regression between 2.6.4 and 2.6.5rc1. Sorry
> that it's a bit late, but I think it's an important one as it will
> truncate the target file and report it as successfully changed.
>
> --
> 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.
>
>

-- 
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.

Reply via email to