facter-03-FACT-658.patch revision 3333
3333N/APatch for FACT-658 facter doesn't parse gnu uptime output
3333N/AUpstream bug: https://tickets.puppetlabs.com/browse/FACT-658
3333N/A--- facter-2.1.0/lib/facter/util/uptime.rb.orig 2014-08-15 10:19:59.183717181 -0600
3333N/A+++ facter-2.1.0/lib/facter/util/uptime.rb 2014-08-15 10:44:49.611645182 -0600
3333N/A@@ -76,6 +76,14 @@
3333N/A end
3333N/A
3333N/A def self.uptime_executable_cmd
3333N/A- "uptime"
3333N/A+ if Facter.value(:kernel) == 'SunOS'
3333N/A+ # Facter doesn't work with gnu uptime
3333N/A+ # force use of /usr/bin/uptime
3333N/A+ # in case user PATH has /usr/gnu/bin
3333N/A+ # before /usr/bin
3333N/A+ "/usr/bin/uptime"
3333N/A+ else
3333N/A+ "uptime"
3333N/A+ end
3333N/A end
3333N/A end