summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-04-16 12:03:39 -0500
committerDavid Lehman <dlehman@redhat.com>2010-04-21 12:20:44 -0500
commite9d7118f4eb0ff290ae25ac4e1bce733d649b30f (patch)
treeb7190b9de18bffaea79d195750ebfbb555b3c437 /iw
parent8879d1ad23afc821a6878e341a7e9aacaa898d82 (diff)
downloadanaconda-e9d7118f4eb0ff290ae25ac4e1bce733d649b30f.tar.gz
anaconda-e9d7118f4eb0ff290ae25ac4e1bce733d649b30f.tar.xz
anaconda-e9d7118f4eb0ff290ae25ac4e1bce733d649b30f.zip
Restore storage.clearPartType after reset when backing out of GUI. (#559233)
We unset storage.clearPartType so that all devices will be found during reset of storage, but we need to restore it afterwards since the user is headed to the cleardisks screen and not necessarily all the way back to the parttype screen where clearPartType would get set again.
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index a15a41b48..7ce4df2ea 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -902,8 +902,12 @@ class PartitionWindow(InstallWindow):
def getPrev(self):
self.stripeGraph.shutDown()
+ # temporarily unset storage.clearPartType so that all devices will be
+ # found during storage reset
+ clearPartType = self.storage.clearPartType
self.storage.clearPartType = None
self.storage.reset()
+ self.storage.clearPartType = clearPartType
self.tree.clear()
del self.parent
return None