tiny fix to execution error printing
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/0b069601 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/0b069601 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/0b069601 Branch: refs/heads/ARIA-48-aria-cli Commit: 0b069601c1200419d9f3df856b7ba52f6e0a2a3a Parents: ed28142 Author: Ran Ziv <[email protected]> Authored: Tue Apr 4 12:07:32 2017 +0300 Committer: Ran Ziv <[email protected]> Committed: Thu Apr 6 11:29:17 2017 +0300 ---------------------------------------------------------------------- aria/cli/commands/executions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/0b069601/aria/cli/commands/executions.py ---------------------------------------------------------------------- diff --git a/aria/cli/commands/executions.py b/aria/cli/commands/executions.py index 82ee51a..635ae63 100644 --- a/aria/cli/commands/executions.py +++ b/aria/cli/commands/executions.py @@ -150,7 +150,7 @@ def start(workflow_name, execution = workflow_runner.execution logger.info('Execution has ended with "{0}" status'.format(execution.status)) - if execution.status == Execution.FAILED: + if execution.status == Execution.FAILED and execution.error: logger.info('Execution error:\n{0}'.format(execution.error)) if dry:
