Issue #2110 has been updated by jamtur01. Status changed from Accepted to Closed % Done changed from 0 to 100
Applied in changeset commit:"3f61df8716d1ed66fb24bf7bcf64fcc2ebc711b9". ---------------------------------------- Bug #2110: versioncmp broken http://projects.reductivelabs.com/issues/2110 Author: volcane Status: Closed 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 -~----------~----~----~----~------~----~------~--~---
