On Thu, Mar 29, 2012 at 8:48 AM, Pablo Fernandez <pablo.fernan...@cscs.ch>wrote:

> Dear stdlib'ers...
>
> I have just discovered the wonders of the parser functions, and got
> impressed with the tens of functions that come with stdlib. First things
> first... good work!!! Thanks!!
>
> And now the issue. It seems like the writer of the range() function did
> not think about ranges with more than one digit that need leading zeros in
> the first items, like "01..99", when you usually want to have 01, 02, and
> so on. Ruby allows you to do ("01".."99") and that will do the right thing,
> but the range() function provided with stdlib does some type conversion
> (detects if it's a number, and changes the type to integer) which converts
> "01" to 1 breaking this possibility. I tried to submit a bug report, but I
> just can list the open ones, can't make one myself. Is this intentional?
> How do I properly address this request?
>


Pablo, I just tried to reproduce this in the issue you reported at
http://projects.puppetlabs.com/issues/13494

It looks like range("host01", "host99") works fine, returning [ "host01",
"host02", ..., "host98", "host99" ]

Is this what you're looking for, or is it an issue only if the leading
portion of the string is zero padded?

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to