Issue #2110 has been updated by volcane.
I doubt what you're experiencing can fall under this bug. I'd suggest what you do is instead of trying to use the versioncmp function in your template, use it in the manifest. something like: $ver = versioncmp($puppetversion) and then simply use the $ver variable in an if statement inside your template, this should be much cleaner and more readable as well. ---------------------------------------- Bug #2110: versioncmp broken http://projects.reductivelabs.com/issues/2110 Author: volcane Status: Re-opened Priority: Normal Assigned to: masterzen Category: functions Target version: 0.25.0 Complexity: Unknown Affected version: 0.24.8 Keywords: hello, the versioncmp function in 0.24.8 is broken: <pre> Puppet::Parser::Functions::newfunction(:versioncmp, :doc => "Compares two versions.") do |args| <snip> return Puppet::Util::Package.versioncmp(args[0], args[1]) end </pre> clearly the function is supposed to return a value, however the newfunction() call does not set it to return anything resulting in: Function 'versioncmp' does not return a value at /home/rip/test.pp:1 on node nephilim.ml.org when used. Simply adding ':type => :rvalue' to the newfunction() call fixes it. -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
