[f19-branch/master] Wait for storage execute to finish
Brian C. Lane
bcl at redhat.com
Thu Jun 13 20:14:39 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
Storage checking should not run while execute is running, or send
messages to the hub. Wait until its thread is done first.
---
pyanaconda/ui/gui/spokes/storage.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 48edb6d..999b947 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -289,11 +289,13 @@ class StorageChecker(object):
_mainSpokeClass = "StorageSpoke"
def run(self):
- hubQ.send_not_ready(self._mainSpokeClass)
threadMgr.add(AnacondaThread(name=constants.THREAD_CHECK_STORAGE,
target=self.checkStorage))
def checkStorage(self):
+ threadMgr.wait(constants.THREAD_EXECUTE_STORAGE)
+
+ hubQ.send_not_ready(self._mainSpokeClass)
hubQ.send_message(self._mainSpokeClass, _("Checking storage configuration..."))
(StorageChecker.errors,
StorageChecker.warnings) = self.storage.sanityCheck()
--
1.8.1.4
More information about the anaconda-patches
mailing list