[PATCH 6/6] Move text UI summary hub setup into the setup method (#927315, #950956).

Chris Lumens clumens at redhat.com
Thu Apr 11 19:00:49 UTC 2013


Without this, self._keys was empty (because it's set up by the superclass's
setup method, which gets called after the summary hub's __init__).  Thus,
there were no spokes and no spoke execute methods got called.  Thus, the
storage configuration in the kickstart file was not applied and we had to
stop and ask.
---
 pyanaconda/ui/tui/hubs/summary.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/tui/hubs/summary.py b/pyanaconda/ui/tui/hubs/summary.py
index ab8bb39..412735d 100644
--- a/pyanaconda/ui/tui/hubs/summary.py
+++ b/pyanaconda/ui/tui/hubs/summary.py
@@ -32,8 +32,9 @@ class SummaryHub(TUIHub):
     title = _("Installation")
     categories = ["source", "localization", "destination", "password"]
 
-    def __init__(self, app, data, storage, payload, instclass):
-        TUIHub.__init__(self, app, data, storage, payload, instclass)
+    def setup(self, environment="anaconda"):
+        TUIHub.setup(self, environment=environment)
+
         if flags.automatedInstall:
             sys.stdout.write(_("Starting automated install"))
             sys.stdout.flush()
-- 
1.8.1.2



More information about the anaconda-patches mailing list