diff options
author | Garrett Honeycutt <puppet-dev@garretthoneycutt.com> | 2010-11-03 16:38:06 -0700 |
---|---|---|
committer | Garrett Honeycutt <puppet-dev@garretthoneycutt.com> | 2010-11-03 16:38:06 -0700 |
commit | 71a0ceadffc816c08dd979e139fbbf2fa94023a0 (patch) | |
tree | 4669d580d96f8f1195d5d824f317773861c83b4a | |
parent | 91ac1629dbefa70382636d6e08768038aeb7f298 (diff) | |
download | puppet-71a0ceadffc816c08dd979e139fbbf2fa94023a0.tar.gz puppet-71a0ceadffc816c08dd979e139fbbf2fa94023a0.tar.xz puppet-71a0ceadffc816c08dd979e139fbbf2fa94023a0.zip |
(#5198) add terabyte support to tidy type's size parameter
-rwxr-xr-x | lib/puppet/type/tidy.rb | 7 |
1 files 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) |