Le 02/04/2014 23:25, Andreas Ntaflos a écrit :
On 2014-04-02 11:02, DjE wrote:
The issue (-d does not provide more informations) :
facter -p
undefined method `puppetversion' for Facter:Module
Something like this can also happen when you have a custom fact (or
function?) that calls the Facter API in a now defunct way. For example,
we had this in a custom fact:

if Facter.puppetversion.to_i >= 3
...

Which had to be replaced with this (works in Facter < 2.0.1, too):

if Facter.value(:puppetversion).to_i >= 3
...

This was kindly pointed out to me and fixed by Dominic Cleal in #puppet.

Andreas

Hi Andreas,

Thx for your answer, it was indeed a loaded custom fact (-p) i have fixed with this new syntax and everything works like a charm !

Dje

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/533C883A.10808%40nosbox.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to