summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-01-23 15:15:09 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-02-12 11:28:38 -1000
commit7b2590b6d72fc862e669dce4b4a68d9bcf9302c3 (patch)
tree6496e90014b900c15e7cb8f5688c9375a9316259 /textw
parent6da8a87f7b941fc3b240ab55cdd6ab5b778eedae (diff)
downloadanaconda-7b2590b6d72fc862e669dce4b4a68d9bcf9302c3.tar.gz
anaconda-7b2590b6d72fc862e669dce4b4a68d9bcf9302c3.tar.xz
anaconda-7b2590b6d72fc862e669dce4b4a68d9bcf9302c3.zip
Removed partedUtils.getDeviceSizeMB(), functionality now in pyparted.
The parted.Device object now provides a getSize() method to return the size of the device in a human-readable format.
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index b5cab7c1e..fa7c3e0fd 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -102,7 +102,7 @@ class PartitionTypeWindow:
cleardrives = anaconda.id.partitions.autoClearPartDrives
for disk in disks:
- size = getDeviceSizeMB(anaconda.id.diskset.disks[disk].dev)
+ size = anaconda.id.diskset.disks[disk].dev.getSize(unit="MB")
model = anaconda.id.diskset.disks[disk].dev.model
if not cleardrives or len(cleardrives) < 1: