Issue #2110 has been reported by volcane.
----------------------------------------
Bug #2110: versioncmp broken
http://projects.reductivelabs.com/issues/2110
Author: volcane
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
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
-~----------~----~----~----~------~----~------~--~---