aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-09-16 12:55:09 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-04-07 16:43:35 -0400
commitf3482fe5f53621ed3de386c6e7d5478890f597c0 (patch)
treee2532bb8091d2452d9c158f82d4e3fc063f104d0
parent71eb9e1338dabdedafc2876468a6733e85f8e45f (diff)
downloadsos-f3482fe5f53621ed3de386c6e7d5478890f597c0.tar.gz
[scsi] Use new add_blockdev_cmd method
Updates the scsi plugin to use the new add_blockdev_cmd() method instead of add_udev_info(). Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/scsi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/scsi.py b/sos/plugins/scsi.py
index 18454e21..7b34b6a0 100644
--- a/sos/plugins/scsi.py
+++ b/sos/plugins/scsi.py
@@ -32,6 +32,7 @@ class Scsi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
self.add_cmd_output("sg_map -x")
scsi_hosts = glob("/sys/class/scsi_host/*")
- self.add_udev_info(scsi_hosts, attrs=True)
+ self.add_blockdev_cmd("udevadm info -a %(dev)s", devices=scsi_hosts,
+ prepend_path='/sys/class/scsi_host')
# vim: set et ts=4 sw=4 :