Fixes ObjectDestroyedError on StackTrace object
When deployment fails instead of original error there is a "ObjectDestroyedError: Object <io.murano.StackTrace/0.0.0..> is already destroyed" exception raised and deployment hangs Change-Id: I20f6830cc02ebbdd480716ad3ac3f6ae44016ff4 Closes-Bug: #1624008
This commit is contained in:
parent
5b899a2749
commit
aa65490289
@ -245,16 +245,13 @@ class TaskExecutor(object):
|
||||
try:
|
||||
LOG.debug('Invoking pre-execution hooks')
|
||||
self.session.start()
|
||||
try:
|
||||
action_result = self._invoke(executor)
|
||||
finally:
|
||||
self._model = executor.finalize(obj)
|
||||
|
||||
action_result = self._invoke(executor)
|
||||
except Exception as e:
|
||||
return self.exception_result(e, obj, self.action['method'])
|
||||
finally:
|
||||
LOG.debug('Invoking post-execution hooks')
|
||||
self.session.finish()
|
||||
self._model = executor.finalize(obj)
|
||||
try:
|
||||
action_result = serializer.serialize(action_result, executor)
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user