From 71a0ceadffc816c08dd979e139fbbf2fa94023a0 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Wed, 3 Nov 2010 16:38:06 -0700 Subject: (#5198) add terabyte support to tidy type's size parameter --- lib/puppet/type/tidy.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/puppet/type/tidy.rb b/lib/puppet/type/tidy.rb index 897ee90da..93a7e96cf 100755 --- a/lib/puppet/type/tidy.rb +++ b/lib/puppet/type/tidy.rb @@ -141,8 +141,8 @@ Puppet::Type.newtype(:tidy) do newparam(:size) do desc "Tidy files whose size is equal to or greater than the specified size. Unqualified values are in kilobytes, but - *b*, *k*, *m*, and *g* can be appended to specify *bytes*, - *kilobytes*, *megabytes*, and *gigabytes*, respectively. + *b*, *k*, *m*, *g*, and *t* can be appended to specify *bytes*, + *kilobytes*, *megabytes*, *gigabytes*, and *terabytes*, respectively. Only the first character is significant, so the full word can also be used." @@ -150,7 +150,8 @@ Puppet::Type.newtype(:tidy) do :b => 0, :k => 1, :m => 2, - :g => 3 + :g => 3, + :t => 4 } def convert(unit, multi) -- cgit