Show names of tasks when showing results

When running "ara result list" show also task names field,
like it's done with "ara task list".
It's needed when trying to parse output to understand which
tasks failed and which didn't, according to their names in play.
As private case it's needed to stats collection, when you want
to send stats of passed tasks only to graphite.

Change-Id: I01fb06b80514445c05f589b026cb98637c80f748
This commit is contained in:
Sagi Shnaidman 2017-08-19 16:36:18 +03:00
parent 3fc2068314
commit f7234a0caa
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ from cliff.show import ShowOne
LIST_FIELDS = (
Field('ID'),
Field('Name', 'task.name'),
Field('Host', 'host.name'),
Field('Action', 'task.action'),
Field('Status', 'derived_status'),
@ -34,6 +35,7 @@ LIST_FIELDS = (
SHOW_FIELDS = (
Field('ID'),
Field('Name', 'task.name'),
Field('Playbook ID', 'task.playbook.id'),
Field('Playbook Path', 'task.playbook.path'),
Field('Play ID', 'task.play.id'),