Use of notify() is an error, so replace it with notice, which is a
function. Alternately, notify { msg => '2.6-1 is > than 2.4.5' } could
be used.
Signed-off-by: Todd Zullinger <[email protected]>
---
This hardly seems worthy of a ticket, but it could save someone some
frustration when reading the versioncmp() documentation at:
http://reductivelabs.com/trac/puppet/wiki/FunctionReference
The versioncmp() example produces an error when run:
Unknown function notify at /tmp/test.pp:2 on node localhost
Using notice() fixes this.
Anyway, the trivial fix is on the versioncmp-docs-typo branch at
git://jet.mox.net/~tmz/puppet.git.
lib/puppet/parser/functions/versioncmp.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/puppet/parser/functions/versioncmp.rb
b/lib/puppet/parser/functions/versioncmp.rb
index bdf5391..9435655 100644
--- a/lib/puppet/parser/functions/versioncmp.rb
+++ b/lib/puppet/parser/functions/versioncmp.rb
@@ -18,7 +18,7 @@ This functions returns a number::
Example::
if versioncmp('2.6-1', '2.4.5') > 0 {
- notify('2.6-1 is > than 2.4.5')
+ notice('2.6-1 is > than 2.4.5')
}
") do |args|
--
1.6.5.1
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When life gives you lemons, make lemonade, pee in it, and serve it to
the people that piss you off.
-- Jack Handy, Deep Thoughts
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---