3333N/APatch for FACT-547 Limit the output of prtdiag on Solaris
3333N/AUpstream bug: https://tickets.puppetlabs.com/browse/FACT-547
3333N/A--- facter-2.1.0/lib/facter/util/manufacturer.rb.orig 2014-08-14 12:58:39.037467412 -0600
3333N/A+++ facter-2.1.0/lib/facter/util/manufacturer.rb 2014-08-14 12:59:25.145156708 -0600
3333N/A@@ -60,7 +60,7 @@
3333N/A
3333N/A def self.prtdiag_sparc_find_system_info()
3333N/A # Parses prtdiag for a SPARC architecture string, won't work with Solaris x86
3333N/A- output = Facter::Core::Execution.exec('/usr/sbin/prtdiag 2>/dev/null')
3333N/A+ output = Facter::Core::Execution.exec('/usr/sbin/prtdiag 2>/dev/null | /usr/bin/head')
3333N/A
3333N/A # System Configuration: Sun Microsystems sun4u Sun SPARC Enterprise M3000 Server
3333N/A if output and output =~ /^System Configuration:\s+(.+?)\s+(sun\d+\S+)\s+(.+)/