Stop alarm on curtin error

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
This commit is contained in:
Adam Stokes 2015-10-13 00:54:47 -04:00
parent 12431bff20
commit b4ad1dded6
1 changed files with 5 additions and 3 deletions

View File

@ -78,9 +78,11 @@ class InstallProgressController(ControllerPolicy):
log.debug("filesystem: this is the *real* thing") log.debug("filesystem: this is the *real* thing")
result = yield utils.run_command_async(" ".join(curtin_cmd)) result = yield utils.run_command_async(" ".join(curtin_cmd))
if result['status'] > 0: if result['status'] > 0:
log.error("Problem with curtin " msg = ("Problem with curtin "
"install: {}".format(result)) "install: {}".format(result))
raise Exception("Problem with curtin install") log.error(msg)
self.progress_view.text.set_text(msg)
self.loop.remove_alarm(self.alarm)
self.is_complete = True self.is_complete = True
def progress_indicator(self, *args, **kwargs): def progress_indicator(self, *args, **kwargs):