From ed67ed1fed0ca4f961f214cc2d626b1c124779f3 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Fri, 25 May 2018 14:30:46 -0400 Subject: [block] Use add_udev_info for block devices Updates the block plugin to use the new add_udev_info() method, once with an attribute walk and once without. Resolves: #1319 Signed-off-by: Jake Hunsaker Signed-off-by: Bryn M. Reeves --- sos/plugins/block.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sos/plugins/block.py b/sos/plugins/block.py index 33c9efcd..3a2d14d3 100644 --- a/sos/plugins/block.py +++ b/sos/plugins/block.py @@ -44,8 +44,9 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): if disk.startswith("ram"): continue disk_path = os.path.join('/dev/', disk) + self.add_udev_info(disk_path) + self.add_udev_info(disk_path, attrs=True) self.add_cmd_output([ - "udevadm info -ap /sys/block/%s" % (disk), "parted -s %s unit s print" % (disk_path), "fdisk -l %s" % disk_path ]) -- cgit