diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-02-12 09:47:50 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:30:18 -1000 |
commit | 8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2 (patch) | |
tree | 8fda8f60e5d25677ffbc632aab75ebbaa1dd23f4 /partitions.py | |
parent | c4e53f5b148ec8cc78ea0ba69239fa2734182298 (diff) | |
download | anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.tar.gz anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.tar.xz anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.zip |
Use device property on Disk and Geometry objects.
The property name for Device objects on a Disk or Geometry is
'device', not 'dev'.
Diffstat (limited to 'partitions.py')
-rw-r--r-- | partitions.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/partitions.py b/partitions.py index b87443235..1314d9869 100644 --- a/partitions.py +++ b/partitions.py @@ -418,8 +418,8 @@ class Partitions: elif cryptodev.isLuks("/dev/%s" % device): ptype = fsset.fileSystemTypeGet("foreign") - start = part.geom.start - end = part.geom.end + start = part.geometry.start + end = part.geometry.end size = part.getSize(unit="MB") drive = partedUtils.get_partition_drive(part) @@ -1697,8 +1697,9 @@ class Partitions: self.removeRequest(request) if request.preexist: drive = partedUtils.get_partition_drive(partition) - delete = partRequests.DeleteSpec(drive, partition.geom.start, - partition.geom.end) + delete = partRequests.DeleteSpec(drive, + partition.geometry.start, + partition.geometry.end) self.addDelete(delete) def containsImmutablePart(self, part): |