Fix wrong method calls and try-except section in 'exit' method
Change-Id: I5704adb6c70c9f40c83eb2c0cb884cb6c4d93e6a Closes-Bug: #1590071
This commit is contained in:
parent
8d3718f95d
commit
3a8b5e8c3a
|
@ -228,10 +228,10 @@ class FuelSetup(object):
|
|||
try:
|
||||
dns_choice_num = int(self.choices.index("DNS & Hostname"))
|
||||
except ValueError:
|
||||
log.info("Something bad happened.")
|
||||
|
||||
obj_dns = self.children[dns_choice_num]
|
||||
obj_dns.fixEtcHosts()
|
||||
log.warning("DNS module wasn't found.")
|
||||
else:
|
||||
obj_dns = self.children[dns_choice_num]
|
||||
obj_dns.fixEtcHosts()
|
||||
|
||||
raise urwid.ExitMainLoop()
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ class SaveAndQuit(object):
|
|||
if self.save():
|
||||
self.parent.refreshScreen()
|
||||
time.sleep(1.5)
|
||||
self.parent.exit_program(None)
|
||||
self.parent.exit(None)
|
||||
|
||||
def save(self):
|
||||
results, modulename = self.parent.global_save()
|
||||
|
@ -60,7 +60,7 @@ class SaveAndQuit(object):
|
|||
return False
|
||||
|
||||
def quit_without_saving(self, args):
|
||||
self.parent.exit_program(None)
|
||||
self.parent.exit(None)
|
||||
|
||||
def refresh(self):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue