[PATCH] Use part instead of device in PartitionWindow.populate() (#575749)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the else clause near the end of the PartitionWindow.populate(), we
are referencing 'device' when we should be using 'part'.  If we enter
this block, it means device is None.
---
 iw/partition_gui.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 4ccac2c..a889b7a 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1070,7 +1070,7 @@ class PartitionWindow(InstallWindow):
                             devstring = _("Free")
                             ptype = ""
                         else:
-                            devstring = device.name
+                            devstring = partName
                             ptype = _("Extended")
 
                         self.tree[iter]['Device'] = devstring
@@ -1081,7 +1081,7 @@ class PartitionWindow(InstallWindow):
                         else:
                             sizestr = "%Ld" % (size)
                         self.tree[iter]['Size (MB)'] = sizestr
-                        self.tree[iter]['PyObject'] = device
+                        self.tree[iter]['PyObject'] = part
 
                     part = part.nextPartition()
             else:
-- 
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux