diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-03-01 16:07:54 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-03-02 09:45:12 -1000 |
commit | f673138c97e6d44a7ded497679a8e90300bc593a (patch) | |
tree | b6a6744c3294f8e35e73f73405565eadbb88a125 /iw | |
parent | d9fb606310411979e98b3b888fb01d9dacfd90f8 (diff) | |
download | anaconda-f673138c97e6d44a7ded497679a8e90300bc593a.tar.gz anaconda-f673138c97e6d44a7ded497679a8e90300bc593a.tar.xz anaconda-f673138c97e6d44a7ded497679a8e90300bc593a.zip |
Use disk.name to get device node name.
We have used string slicing to get a device node name like 'sda5'
in the past. The disk.name property now gives us that so we do
not have to do string slicing all over the code.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/autopart_type.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iw/autopart_type.py b/iw/autopart_type.py index 0c8e6c9c1..bb3853323 100644 --- a/iw/autopart_type.py +++ b/iw/autopart_type.py @@ -389,7 +389,7 @@ class PartitionTypeWindow(InstallWindow): size, partedDisk.device.model) i = bootstore.append(None) bootstore[i] = (dispstr, partedDisk.device.path[5:]) - if disk.device.path[5:] == defaultBoot: + if disk.name == defaultBoot: self.bootcombo.set_active_iter(i) if len(bootstore) <= 1: |