diff options
author | Jeff McCune <jeff@puppetlabs.com> | 2012-03-29 15:17:48 -0700 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2012-03-29 15:17:48 -0700 |
commit | 60afdeda17f9672405d9f425fcc1b08f61f9adda (patch) | |
tree | 2f36806174ae5c791ed5453fd2bcbaf55993f417 /lib/puppet | |
parent | 46401caef6e00708867d09319985528c39636ba2 (diff) | |
parent | 61891bbe6112b580043e9d8c256f722a6add9492 (diff) | |
download | puppet-stdlib-60afdeda17f9672405d9f425fcc1b08f61f9adda.tar.gz puppet-stdlib-60afdeda17f9672405d9f425fcc1b08f61f9adda.tar.bz2 |
Merge branch 'maint/2.2.x/range_spec_tests' into 2.2.x
* maint/2.2.x/range_spec_tests:
(#13494) Specify the behavior of zero padded strings
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/functions/range.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/range.rb b/lib/puppet/parser/functions/range.rb index 6e85422..825617b 100644 --- a/lib/puppet/parser/functions/range.rb +++ b/lib/puppet/parser/functions/range.rb @@ -15,9 +15,18 @@ an array. Will return: [0,1,2,3,4,5,6,7,8,9] + range("00", "09") + +Will return: [0,1,2,3,4,5,6,7,8,9] (Zero padded strings are converted to +integers automatically) + range("a", "c") Will return: ["a","b","c"] + + range("host01", "host10") + +Will return: ["host01", "host02", ..., "host09", "host10"] EOS ) do |arguments| |