Ignore me, I had a typo. I had put the parentheses around (0..(processorcount.to_i-1) but I forgot the closing ')'
-Chris On Wed, Nov 25, 2009 at 11:30 AM, Peter Meier <peter.me...@immerda.ch>wrote: > > ah! I am still learning ruby here so appreciate the time spent to show > me > > this. > > > > Shouldn't this also work to subtract (1) from the integer? Works in a > ruby > > script but not here. > > > > 19 <% processorcount.to_i - 1 %> > > 20 <% for cpu in (0..processorcount.to_i) %> > > you mean it still counts up to 20? because processorcount isn't reduced. > > <% for cpu in (0..(processorcount.to_i-1)) %> > > or what do you mean with it doesn't work? > > cheers pete > > -- > > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.