components/ruby/facter/patches/facter-01-FACT-654.patch
author pkidd <patrick.kidd@oracle.com>
Wed, 06 Apr 2016 10:50:15 -0700
branchs11u3-sru
changeset 5735 e1efaec5fd4c
parent 3401 bd976a0fa74e
permissions -rw-r--r--
Added tag 0.175.3.8.0.1.0, S11.3SRU8.1 for changeset 173f0c0430a8

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.