summaryrefslogtreecommitdiffstats
path: root/iw/osbootwidget.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-01-27 20:09:08 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-02-12 11:30:03 -1000
commite86d17a13c26a57b8745b1951dace73ae6372de9 (patch)
tree1d40a1879386ccf8e33673a8ec512e02affb79f6 /iw/osbootwidget.py
parent6926d406cdd73b9da40e9c4a4e4b740b4566736d (diff)
downloadanaconda-e86d17a13c26a57b8745b1951dace73ae6372de9.tar.gz
anaconda-e86d17a13c26a57b8745b1951dace73ae6372de9.tar.xz
anaconda-e86d17a13c26a57b8745b1951dace73ae6372de9.zip
Syntax changes for the new pyparted.
1) Iterate over partitions with a for loop over disk.partitions.values() rather than calling next_partition() 2) Call getFlag() rather than get_flag() 3) Call setFlag() to enable a flag, call unsetFlag() to disable a flag. 4) Reference the active property rather than calling the is_active() method. And other fixes.
Diffstat (limited to 'iw/osbootwidget.py')
-rw-r--r--iw/osbootwidget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/osbootwidget.py b/iw/osbootwidget.py
index 481267dfa..38e177207 100644
--- a/iw/osbootwidget.py
+++ b/iw/osbootwidget.py
@@ -158,8 +158,8 @@ class OSBootWidget:
parts = []
disks = self.diskset.disks
func = lambda part: (part.is_active() and
- part.get_flag(parted.PARTITION_LVM) != 1 and
- part.get_flag(parted.PARTITION_RAID) != 1)
+ part.getFlag(parted.PARTITION_LVM) != 1 and
+ part.getFlag(parted.PARTITION_RAID) != 1)
for drive in disks.keys():
pedparts.extend(partedUtils.filter_partitions(disks[drive], func))
for part in pedparts: