components/ruby/facter/patches/facter-01-FACT-654.patch
author Kristina Tripp <Kristina.Tripp@oracle.com>
Thu, 04 Sep 2014 16:55:58 -0600
changeset 2068 4e371f01e40f
permissions -rw-r--r--
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

Patch for FACT-654 facter ldom.rb generates virtinfo usage error on Solaris 11.2 x86
Upstream bug: https://tickets.puppetlabs.com/browse/FACT-654
--- facter-2.1.0/lib/facter/ldom.rb.orig	2014-08-13 17:15:34.284330702 -0600
+++ facter-2.1.0/lib/facter/ldom.rb	2014-08-13 17:16:13.476092829 -0600
@@ -1,4 +1,6 @@
-if Facter.value(:kernel) == 'SunOS' and Facter::Core::Execution.which('virtinfo')
+if Facter.value(:kernel) == 'SunOS' and
+    Facter.value(:hardwareisa) == 'sparc' and
+    Facter::Core::Execution.which('virtinfo')
   virtinfo = Facter::Core::Execution.exec('virtinfo -ap')
 
   # Convert virtinfo parseable output format to array of arrays.