aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-04-25 18:23:02 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-04-25 18:23:02 +0100
commit4716e20e8d903534fae35846b7f50d0bcbc72600 (patch)
treed0090b98b588df4aa42c58b9bae929fc7005ce05
parent64d848606f4ab04d94668a09330b2e327828368c (diff)
downloadsos-4716e20e8d903534fae35846b7f50d0bcbc72600.tar.gz
Fix running of RHN hardware.py script
The hardware.py script is no longer executable. Run it via the python interpreter. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/hardware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py
index f5e2816c..11b0a2c4 100644
--- a/sos/plugins/hardware.py
+++ b/sos/plugins/hardware.py
@@ -79,7 +79,7 @@ class RedHatHardware(hardware, RedHatPlugin):
hwpaths = glob("/usr/share/rhn/up2date*client/hardware.py")
if (len(hwpaths) == 0):
return
- self.add_cmd_output(hwpaths[0])
+ self.add_cmd_output("python " + hwpaths[0])
class DebianHardware(hardware, DebianPlugin, UbuntuPlugin):