nevermind. I''m an idiot. I was testing on a machine that only had a
short
hostname and my fact isn''t resilient to not being able to split the
fqdn.
On 1/7/08, Chris MacLeod <stickm@gmail.com> wrote:>
> Not sure if this is another issue cropping up with 0.24.1 but I''m
getting
> the following:
>
> info: Loading fact raid
> /etc/puppet/facts/location.rb:5: private method `split'' called for
> nil:NilClass (NoMethodError)
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:510:in `call''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:510:in `value''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:355:in `value''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:352:in `each''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:352:in `value''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:189:in
`to_hash''
> from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in
> `inject''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:187:in `each''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:187:in `inject''
> from /usr/lib/ruby/site_ruby/1.8/facter.rb:187:in
`to_hash''
> from
> /usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:59:in
`find''
> from
> /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:170:in
`find''
> from /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:42:in
`find''
> from /usr/bin/puppet:175
>
>
> the fact in question is:
> Facter.add("location") do
> setcode do
> a = Facter.domain.split(".")
> a.shift
> location = a.shift
> end
> end
>
>
> it''s not related to this fact though, b/c when I remove that fact
I get an
> the same error on another fact that uses the split function.
>
>
> Thoughts?
>
>
> C
>
> --
> stickm@gmail.com
> -==< Stick >==-
>
--
stickm@gmail.com
-==< Stick >==-
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users