Fix print in st2client when liveaction result does not exists
For Action Chain, if the liveaction does not have result yet, st2client throws attribute missing error on execution get.
@@ -360,7 +360,7 @@ class ActionRunCommandMixin(object):
status_index = options['attributes'].index('status')
- if isinstance(instance.result, dict):
+ if hasattr(instance, 'result') and isinstance(instance.result, dict):
tasks = instance.result.get('tasks', [])
else:
tasks = []
