From: Martin Kolman <mkolman(a)redhat.com>
Related: rhbz#1257624
---
initial_setup/__init__.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/initial_setup/__init__.py b/initial_setup/__init__.py
index e4bd9b8..1607845 100644
--- a/initial_setup/__init__.py
+++ b/initial_setup/__init__.py
@@ -140,7 +140,7 @@ def gui_mode_id(self):
"""String id of the current GUI mode
:returns: "gui" if gui_mode is True, "tui" otherwise
- :rtype str:
+ :rtype: str
"""
if self.gui_mode:
return "gui"
@@ -204,6 +204,8 @@ def _apply(self):
# Do not execute sections that were part of the original
# anaconda kickstart file (== have .seen flag set)
+ log.info("applying changes")
+
sections = [self.data.keyboard, self.data.lang, self.data.timezone]
# data.selinux
@@ -254,12 +256,15 @@ def _apply(self):
log.debug("removing reconfig trigger file: %s" %
reconfig_file)
os.remove(reconfig_file)
+ # and we are done with applying changes
+ log.info("all changes have been applied")
+
def run(self):
"""Run Initial setup
GUI will be used when the gui_mode property is True (TUI mode is the default).
- :returns: True if the IS run was successfull, False if it failed
+ :returns: True if the IS run was successful, False if it failed
:rtype: bool
"""
@@ -295,7 +300,7 @@ def run(self):
log.debug("initializing TUI")
ui = initial_setup.tui.InitialSetupTextUserInterface(None, None, None)
- # Pass the data object to user inteface
+ # Pass the data object to user interface
log.debug("setting up the UI")
ui.setup(self.data)
--
To view this commit on github, visit
https://github.com/rhinstaller/initial-setup/commit/e5db815c523262b770898...