aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-06 16:49:55 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-04-06 16:49:55 +0100
commitdceb2d29a24ff59a6560fc5e7a5ee046a171980a (patch)
tree16a9aba7a15021c8379c16f5e309e63c268d6991
parentd3767e23324d58a148c59812477205661acd2026 (diff)
downloadsos-dceb2d29a24ff59a6560fc5e7a5ee046a171980a.tar.gz
Remove pipe use from soundcard plugin
This is redundant since the whole lspci and lsmod output is captured elsewhere. Also removes shell syntax from the plugin. Related: Issue #253. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/soundcard.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/sos/plugins/soundcard.py b/sos/plugins/soundcard.py
index 6b13a2d0..75fdca06 100644
--- a/sos/plugins/soundcard.py
+++ b/sos/plugins/soundcard.py
@@ -26,12 +26,9 @@ class Soundcard(Plugin):
def setup(self):
self.add_copy_spec("/proc/asound/*")
- self.add_cmd_output("lspci | grep -i audio")
self.add_cmd_output("aplay -l")
self.add_cmd_output("aplay -L")
self.add_cmd_output("amixer")
- self.add_cmd_output("lsmod | grep snd | awk '{print $1}'",\
- suggest_filename = "sndmodules_loaded")
class RedHatSoundcard(Soundcard, RedHatPlugin):
""" Sound card information for RedHat distros