[PATCH storage] Fix traceback when editing encrypted mdraid device in UI.

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

 



Also correct some references to self.origrequest.
---
 iw/raid_dialog_gui.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 578e3e7..c806204 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -149,6 +149,7 @@ class RaidEditor:
             migrate = None
 	    model = self.raidlist.get_model()
 	    iter = model.get_iter_first()
+            format = None
 	    while iter:
 		val   = model.get_value(iter, 0)
 		part = model.get_value(iter, 1)
@@ -254,13 +255,13 @@ class RaidEditor:
 
 		if self.fsoptionsDict.has_key("migratecb") and \
 		   self.fsoptionsDict["migratecb"].get_active():
-                    if origrequest.format.type == "luks":
+                    if self.origrequest.format.type == "luks":
                         try:
-                            usedev = self.storage.devicetree.getChildren(origrequest)[0]
+                            usedev = self.storage.devicetree.getChildren(self.origrequest)[0]
                         except IndexError:
-                            usedev = origrequest
+                            usedev = self.origrequest
                     else:
-                        usedev = origrequest
+                        usedev = self.origrequest
                     migrate = True
 
                 if self.origrequest.format.exists and \
-- 
1.5.4.3

_______________________________________________
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