[Fix] Unhandled exception in maasdriver
- Fix an issue where the exception handler is itself throwing an exception Change-Id: I4a197dcd62b68a5107d43d7532fec5c3c4d69229
This commit is contained in:
parent
a71c4be911
commit
a1e5715953
@ -204,8 +204,8 @@ class MaasNodeDriver(NodeDriver):
|
||||
maas_client=maas_client)
|
||||
action.start()
|
||||
except Exception as e:
|
||||
msg = "Subtask for action %s raised unexpected exceptions" % task.action
|
||||
self.logger.error(msg, exc_info=e.exception())
|
||||
msg = ("Subtask for action %s raised unexpected exception: %s" % (task.action, str(e)))
|
||||
self.logger.error(msg, exc_info=e)
|
||||
task.add_status_msg(
|
||||
msg, error=True, ctx=str(task.get_id()), ctx_type='task')
|
||||
task.failure()
|
||||
|
Loading…
x
Reference in New Issue
Block a user