Issue #14494 has been updated by Kelsey Hightower. Status changed from Unreviewed to Needs Decision
I'm not sure if this is desired behavior, so I'm setting this ticket to "Needs Decision". ---------------------------------------- Bug #14494: Puppet does not implicitly convert string to integer https://projects.puppetlabs.com/issues/14494#change-64362 Author: Mathias Nestler Status: Needs Decision Priority: Normal Assignee: Category: Target version: 2.7.15 Affected Puppet version: 2.7.14 Keywords: Branch: I refer to my post on serverfault (http://serverfault.com/questions/388944/how-to-convert-a-string-to-integer-in-puppet). In short I have the following code: $foo = '123' $result = $foo % 2 Puppet give me an `Could not match %` error. If I am using multiplication with this code: $foo = '123' $result = $foo * 2 I get a `left operand of * is not a number` error. **Therefore it seems to be that there is an error with implicitly converting a string to integer.** -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
