Include result in st2 execution get
Print the workflow output in st2 execution get. Currently, only the last task result is printed if the result contains task details.
@@ -421,6 +421,9 @@ class ActionRunCommandMixin(object):
options['attributes'].insert(status_index + 1, 'result_task')
options['attributes'].insert(status_index + 2, 'result')
instance.result = task_result
+ # Otherwise include the result of the workflow execution.
+ else:
+ options['attributes'].append('result')
# print root task
self.print_output(instance, formatter, **options)
