diff options
author | Shane Bradley <sbradley@redhat.com> | 2015-01-20 11:08:59 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-03-09 17:05:26 +0000 |
commit | c77c14ecd3e7e35a331cef169b08ffcb318952c2 (patch) | |
tree | 64b269338bda76168792546a93a4dcb48abb0de3 | |
parent | 915b5d7b8b3f806b66af4b3f522963be72d9777a (diff) | |
download | sos-c77c14ecd3e7e35a331cef169b08ffcb318952c2.tar.gz |
[block] don't use parted human readable output
Changed the parted command to return data in sectors units
instead of human readable form.
Fixes #471.
Signed-off-by: Shane Bradley <sbradley@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/block.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/block.py b/sos/plugins/block.py index 7984f0d4..e02304c6 100644 --- a/sos/plugins/block.py +++ b/sos/plugins/block.py @@ -46,7 +46,7 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): disk_path = os.path.join('/dev/', disk) self.add_cmd_output([ "udevadm info -ap /sys/block/%s" % (disk), - "parted -s %s print" % (disk_path), + "parted -s %s unit s print" % (disk_path), "fdisk -l %s" % disk_path ]) |