aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Bradley <sbradley@redhat.com>2015-01-20 11:08:59 -0500
committerBryn M. Reeves <bmr@redhat.com>2015-03-09 17:05:26 +0000
commitc77c14ecd3e7e35a331cef169b08ffcb318952c2 (patch)
tree64b269338bda76168792546a93a4dcb48abb0de3
parent915b5d7b8b3f806b66af4b3f522963be72d9777a (diff)
downloadsos-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.py2
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
])