Issue #8963 has been updated by Andrew Parker.

Target version changed from 2.0.0 to 1.7.0

This was actually released in 1.7.0

----------------------------------------
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-94831

* Author: Lucas Van Tol
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: Jeff Weiss
* Category: library
* Target version: 1.7.0
* Keywords: 
* Branch: https://github.com/puppetlabs/facter/pull/225
* 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 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.


Reply via email to