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

[PATCH f14-branch master 3/3] Properly rescan storage with Reset in partition GUI (#635778)



Temporarily reset the partition type when rescanning so that
the original settings will be discovered when hitting 'reset'
in the partition dialog.

Related: rhbz#635778
---
 pyanaconda/iw/partition_gui.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iw/partition_gui.py b/pyanaconda/iw/partition_gui.py
index 015aa76..129d655 100644
--- a/pyanaconda/iw/partition_gui.py
+++ b/pyanaconda/iw/partition_gui.py
@@ -1561,7 +1561,12 @@ class PartitionWindow(InstallWindow):
             return
 
         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()
         self.populate()
 
-- 
1.7.2.3


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