On 17/09/14 17:29, Trevor Vaughan wrote:
Ah, so looking at warranty.rb and then stdlib...puppet_vardir.rb, you
may be missing this:
begin
require 'facter/util/puppet_settings'
rescue LoadError => e
# puppet apply does not add module lib directories to the $LOAD_PATH
(See
# #4248). It should (in the future) but for the time being we need to be
# defensive which is what this rescue block is doing.
rb_file = File.join(File.dirname(__FILE__), 'util',
'puppet_settings.rb')
load rb_file if File.exists?(rb_file) or raise e
end
Thanks. I added a similar block of code to load util/warranty.rb but it
didn't cure the situation. Something is different though. Running facter
by hand no longer complains, but my 15-minutely emails from MCollective
as it tries to cache facts are still being sent:
Could not retrieve fact='warranty_start', resolution='<anonymous>': undefined
method `[]' for nil:NilClass
Could not retrieve fact='warranty_end', resolution='<anonymous>': undefined
method `[]' for nil:NilClass
Could not retrieve fact='warranty_end', resolution='<anonymous>': undefined
method `[]' for nil:NilClass
Could not retrieve fact='warranty_days_left', resolution='<anonymous>': can't
dup NilClass
BTW #4248 is a very old bug, surely it's still not being hit?
https://projects.puppetlabs.com/issues/4248
I'm out of the office for a couple hours but I'll some more time into
this a bit later this afternoon.
Cheers,
Jonathan
--
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/541AA781.2060000%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.