diff options
author | Jeff McCune <jeff@puppetlabs.com> | 2012-03-29 15:20:41 -0700 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2012-03-29 15:20:41 -0700 |
commit | d37815e5bfe1d480e5fe4691f82aa615b25a08a2 (patch) | |
tree | af2b3e2db28fb5a9de84d0b9be908950cc852d81 /lib/puppet/parser | |
parent | 033eddadc2b3f72783056fe7c9d70f651bcdf857 (diff) | |
parent | fea0b06bc828f452900943db962f4f7645bb0802 (diff) |
Merge branch '2.3.x'
* 2.3.x:
(#13494) Specify the behavior of zero padded strings
Update CHANGELOG, Modulefile for 2.1.3
Diffstat (limited to 'lib/puppet/parser')
-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| |