Log the error from OrchestrationDeployAction

If the action fails, it returns an error to be used in the workflow.
While this is useful it means there is little trace of the error in the
log files. Adding the error also to the logs will make it easier to
debug and track down.

Related-Bug: #1734747
Change-Id: I5faba1feec7e87bb595edb3448a096caa0812a9b
This commit is contained in:
Dougal Matthews
2017-11-28 10:05:13 +00:00
parent c4d29dca20
commit 5d4cadef9e

View File

@@ -122,6 +122,9 @@ class OrchestrationDeployAction(base.TripleOAction):
if body_json['deploy_status_code'] != 0:
error = "Heat deployment failed for '%s'" % self.name
if error:
LOG.error(error)
return actions.Result(data=body_json, error=error)