Issue #8963 has been updated by Ken Dreyer. File facter-1.8.patch added
This also affects Solaris 10. Here's the patch we're using. Basically check that swap is not nil before iterating (similar to the check that's done with arp in arp.rb). ---------------------------------------- Bug #8963: facter-1.6.0 fails to run in some OpenSolaris|Indiana releases if no swap devices present. https://projects.puppetlabs.com/issues/8963#change-58596 Author: Lucas Van Tol Status: Accepted Priority: Normal Assignee: Category: Target version: 1.6.x Keywords: Branch: Affected Facter version: 1.6.0 <pre> :~$ swap -l No swap devices configured :~$ facter ... facterversion => 1.5.7 ... rubyversion => 1.8.7 ... kernel => SunOS kernelmajversion => snv_128a kernelrelease => 5.11 kernelversion => snv_128a :-$ gem install facter Successfully installed facter-1.6.0 1 gem installed :~$ facter No swap devices configured Error: undefined method `each' for nil:NilClass ------------------- Editing 'lib/facter/memory.rb' and adding an 'if !swap.nil?'...'end' around lines 170..175 seems to work with or without swap. Still displays the error from :~$ facter No swap devices configured ... facterversion => 1.6.0 ... kernel => SunOS kernelmajversion => snv_128a kernelrelease => 5.11 kernelversion => snv_128a ... memoryfree => 5.83 GB memorysize => 32.00 GB ... swapfree => 0.00 kB swapsize => 0.00 kB ... </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 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-bugs?hl=en.
