puppetlabs/facter — pull request #334 by jeffmccune (2012-10-16 20:37:19+00:00)
Title: (#16506) Fix illegal option error from uname on hpux

Without this patch applied Facter produces a misleading error message
when run on HP-UX:

$ facter hardwareisa
/usr/bin/uname: illegal option -- p
usage: uname [-amnrsvil] [-S nodename]

This patch fixes the problem by changing the command to `uname -m` when running
on the HP-UX kernel.

Original author: Alex Harvey

Reviewed-by: Jeff McCune