diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-05-25 14:30:46 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-07 11:51:26 +0100 |
commit | ed67ed1fed0ca4f961f214cc2d626b1c124779f3 (patch) | |
tree | f7474ce5a23e56f7b2333b581bc2fc14b2e23f73 | |
parent | bd73120e18485fe7a0e4513a71210bf57413fb44 (diff) | |
download | sos-ed67ed1fed0ca4f961f214cc2d626b1c124779f3.tar.gz |
[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 <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/block.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 ]) |