[Pkg-puppet-devel] Bug#513309: Tidy does not remove empty files when "size => 0" is set

Stig Sandbeck Mathisen ssm at debian.org
Mon Feb 8 09:41:54 UTC 2010


tags 513309 + confirmed
retitle 513309 Tidy does not remove empty files when "size => 0" is set
thanks


,----[ with size parameter ]
| $ ( touch /tmp/test_tidy/zero; echo foo > /tmp/test_tidy/foo )
| $ puppet -e 'tidy { "/tmp/test_tidy": size => "0", recurse => true; }'
| notice: //Tidy[/tmp/test_tidy]: Tidying File[/tmp/test_tidy/foo]
| notice: /File[/tmp/test_tidy/foo]/ensure: removed
`----

,----[ without size parameter ]
| $ ( touch /tmp/test_tidy/zero; echo foo > /tmp/test_tidy/foo )
| $ puppet -e 'tidy { "/tmp/test_tidy": recurse => true; }'
| notice: //Tidy[/tmp/test_tidy]: Tidying File[/tmp/test_tidy/zero]
| notice: //Tidy[/tmp/test_tidy]: Tidying File[/tmp/test_tidy/foo]
| notice: /File[/tmp/test_tidy/zero]/ensure: removed
| notice: /File[/tmp/test_tidy/foo]/ensure: removed
`----

-- 
Stig Sandbeck Mathisen





More information about the Pkg-puppet-devel mailing list