summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-02-09 00:18:13 +1100
committerJames Turnbull <james@lovedthanlost.net>2010-02-09 04:39:10 +1100
commit71653a74d91b1e6e9845b4a41249861319c0d6b0 (patch)
treed47870a2e9c151ad34e314984d9a0f2fc1bdb750 /lib/puppet
parentefd0f76c3b40fb15528b3226687eb1ab454b0c42 (diff)
downloadpuppet-71653a74d91b1e6e9845b4a41249861319c0d6b0.tar.gz
puppet-71653a74d91b1e6e9845b4a41249861319c0d6b0.tar.xz
puppet-71653a74d91b1e6e9845b4a41249861319c0d6b0.zip
Fixed #3162 - tidy does not remove empty files when "size => 0" is set
Thanks to Stig Sandbeck Mathisen for the fix See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513309
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/tidy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/tidy.rb b/lib/puppet/type/tidy.rb
index b5ccb3fb1..3d7190c27 100755
--- a/lib/puppet/type/tidy.rb
+++ b/lib/puppet/type/tidy.rb
@@ -139,7 +139,7 @@ Puppet::Type.newtype(:tidy) do
end
def tidy?(path, stat)
- if stat.size > value
+ if stat.size >= value
return true
else
return false