Issue #23058 has been reported by Rob Terhaar.
----------------------------------------
Bug #23058: facter crashes when parsing nil output from custom facts script
https://projects.puppetlabs.com/issues/23058
* Author: Rob Terhaar
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Keywords:
* Branch:
* Affected Facter version: 1.7.3
----------------------------------------
<pre>
mkdir -p /etc/facter/facts.d
echo '#!/bin/bash' > /etc/facter/facts.d/test.sh
echo 'exit 0' >> /etc/facter/facts.d/test.sh
chmod +x /etc/facter/facts.d/test.sh
</pre>
<pre>
facter -p
/usr/lib/ruby/vendor_ruby/facter/util/parser.rb:73:in `parse': undefined method
`each_line' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/vendor_ruby/facter/util/parser.rb:120:in `results'
from /usr/lib/ruby/vendor_ruby/facter/util/directory_loader.rb:61:in
`load'
from /usr/lib/ruby/vendor_ruby/facter/util/directory_loader.rb:55:in
`each'
from /usr/lib/ruby/vendor_ruby/facter/util/directory_loader.rb:55:in
`load'
from /usr/lib/ruby/vendor_ruby/facter/util/composite_loader.rb:10:in
`load'
from /usr/lib/ruby/vendor_ruby/facter/util/composite_loader.rb:10:in
`each'
from /usr/lib/ruby/vendor_ruby/facter/util/composite_loader.rb:10:in
`load'
from /usr/lib/ruby/vendor_ruby/facter/util/collection.rb:109:in `load'
from /usr/lib/ruby/vendor_ruby/facter/util/collection.rb:84:in `fact'
from /usr/lib/ruby/vendor_ruby/facter/util/collection.rb:139:in `value'
from /usr/lib/ruby/vendor_ruby/facter.rb:112:in `send'
from /usr/lib/ruby/vendor_ruby/facter.rb:112:in `value'
from /usr/lib/ruby/vendor_ruby/puppet/defaults.rb:4:in
`default_diffargs'
from /usr/lib/ruby/vendor_ruby/puppet/defaults.rb:183
from /usr/lib/ruby/vendor_ruby/puppet.rb:109:in `require'
from /usr/lib/ruby/vendor_ruby/puppet.rb:109
from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:12:in
`require'
from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:12
from /usr/bin/puppet:3:in `require'
from /usr/bin/puppet:3
</pre>
--
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://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.