summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-11-01 19:56:30 +0000
committerMatt Wilson <msw@redhat.com>2002-11-01 19:56:30 +0000
commit4aa5f1225420e510ec9a7651c16599e5c223d4a3 (patch)
tree6c26b84860943c389ec0501298179961e8be20c0 /partitions.py
parent69b2af6c3e8938bcbb8187b534b997d08ce15cb3 (diff)
downloadanaconda-4aa5f1225420e510ec9a7651c16599e5c223d4a3.tar.gz
anaconda-4aa5f1225420e510ec9a7651c16599e5c223d4a3.tar.xz
anaconda-4aa5f1225420e510ec9a7651c16599e5c223d4a3.zip
port to parted 1.6.x
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/partitions.py b/partitions.py
index a8a494327..b2f35282f 100644
--- a/partitions.py
+++ b/partitions.py
@@ -1061,7 +1061,7 @@ class Partitions:
def deleteAllLogicalPartitions(self, part):
"""Add delete specs for all logical partitions in part."""
- for partition in partedUtils.get_logical_partitions(part.geom.disk):
+ for partition in partedUtils.get_logical_partitions(part.disk):
partName = partedUtils.get_partition_name(partition)
request = self.getRequestByDeviceName(partName)
self.removeRequest(request)
@@ -1079,7 +1079,7 @@ class Partitions:
if not part.type & parted.PARTITION_EXTENDED:
return None
- disk = part.geom.disk
+ disk = part.disk
while part:
if not part.is_active():
part = disk.next_partition(part)