Issue #19895 has been reported by Robert van Veelen.

----------------------------------------
Bug #19895: Facter assumes "Megabyte" output from prtconf on Solaris
https://projects.puppetlabs.com/issues/19895

* Author: Robert van Veelen
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Keywords: 
* Branch: 
* Affected Facter version: 1.6.17
----------------------------------------
Oracle has altered the output of 'prtconf' in the most recent patch release of 
Solaris 11.1 (SRU 4.5).
'prtconf' used to output 'Memory size' only in 'Megabytes', now this is printed 
in 'Gigabytes'

Old:
<pre>
% prtconf
System Configuration:  Oracle Corporation  i86pc
Memory size: 524284 Megabytes
System Peripherals (Software Nodes):
{...}
</pre>

New:
<pre>
% prtconf
System Configuration:  Oracle Corporation  i86pc
Memory size: 512 Gigabytes
System Peripherals (Software Nodes):
{...}
</pre>

The relevant section of memory.rb in facter, line 189:
<pre>
# Total memory size available from prtconf
pconf = Facter::Util::Resolution.exec('/usr/sbin/prtconf 2>/dev/null')
phymem = ""
pconf.each_line do |line|
  if line =~ /^Memory size:\s+(\d+) Megabytes/
    phymem = $1
  end
end
</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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to