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:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user