18354422 facter cannot parse the output of GNU uptime
18960283 problem in UTILITY/PUPPET
18960296 Update Facter to 2.1.0
19357281 facter --help doesn't work
19402424 puppet error when no swap devices configured
19646677 facter-19 package not installed if ruby-19 not installed
19596952 Update facter 2.1.0 license
17797881 Add facter support for ldoms
Patch for FACT-656 facter generates error on Solaris kernel zone due to prtdiag
Upstream bug: https://tickets.puppetlabs.com/browse/FACT-656
--- facter-2.1.0/lib/facter/virtual.rb.orig 2014-08-18 10:37:43.330858038 -0600
+++ facter-2.1.0/lib/facter/virtual.rb 2014-08-18 10:38:02.723874811 -0600
@@ -67,7 +67,7 @@
setcode do
next "zone" if Facter::Util::Virtual.zone?
- output = Facter::Core::Execution.exec('prtdiag')
+ output = Facter::Core::Execution.exec('/usr/sbin/prtdiag 2>/dev/null')
if output
lines = output.split("\n")
next "parallels" if lines.any? {|l| l =~ /Parallels/ }