aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-04 19:38:05 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-04-04 19:39:46 +0100
commit6fe4ba194b6ae3ad6d7a2a95d3cd882ebf7bc1f3 (patch)
tree9496ba98b4d2c27c6520e62b0d39020007ef8339
parentaf9e7041f766f42385870d55498da6032059f601 (diff)
downloadsos-6fe4ba194b6ae3ad6d7a2a95d3cd882ebf7bc1f3.tar.gz
Fix tuna collection in kernelrt
The path to the 'head' binary was mangled in the automated PATH conversion (commit e0d132e). It's not required anyway - we might as well grab the entire output. Also remove a useless package check before running the command. Fixes Issue #254. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/kernelrt.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/plugins/kernelrt.py b/sos/plugins/kernelrt.py
index ad5c4e79..72b043dd 100644
--- a/sos/plugins/kernelrt.py
+++ b/sos/plugins/kernelrt.py
@@ -33,7 +33,8 @@ class KernelRT(Plugin, RedHatPlugin):
self.add_copy_spec('/sys/kernel/realtime')
self.add_copy_spec('/sys/devices/system/clocksource/clocksource0/available_clocksource')
self.add_copy_spec('/sys/devices/system/clocksource/clocksource0/current_clocksource')
- if self.is_installed('tuna'):
- self.add_cmd_output('tuna -CP | /usthead -20')
+ # note: rhbz#1059685 'tuna - NameError: global name 'cgroups' is not defined'
+ # this command throws an exception on versions prior to 0.10.4-5.
+ self.add_cmd_output('tuna -CP')
# vim: et ts=4 sw=4