Skip to content

Commit

Permalink
Some typo fixes and logging improvements
Browse files Browse the repository at this point in the history
Related: rhbz#1257624
  • Loading branch information
M4rtinK committed Jun 1, 2016
1 parent 1dfa45a commit e5db815
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions initial_setup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
"""

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit e5db815

Please sign in to comment.