Blob Blame History Raw
From 545720b9ac10d82d79b29128545d2592716ebb57 Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Mon, 30 May 2016 11:00:44 +0200
Subject: [PATCH 12/13] Wait for Anaconda to settle before evaluation

Otherwise we may win the race and evaluate the configuration before it's
actually setup "discovering" issues that don't exist in the end.

Resolves: rhbz#1265552
---
 org_fedora_oscap/gui/spokes/oscap.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
index 42fc406..9f515ce 100644
--- a/org_fedora_oscap/gui/spokes/oscap.py
+++ b/org_fedora_oscap/gui/spokes/oscap.py
@@ -429,6 +429,10 @@ class OSCAPSpoke(NormalSpoke):
         # refresh UI elements
         self.refresh()
 
+        # let all initialization and configuration happen before we evaluate the
+        # setup
+        threadMgr.wait_all()
+
         # try to switch to the chosen profile (if any)
         selected = self._switch_profile()
 
-- 
2.5.5