Merge "[Validator Show Run] Display simplified results by default"

This commit is contained in:
Zuul 2020-11-02 13:54:22 +00:00 committed by Gerrit Code Review
commit bec4e6fcb1
1 changed files with 4 additions and 3 deletions

View File

@ -423,7 +423,6 @@ class TripleOValidatorShowRun(command.Command):
parser.add_argument('--full',
action='store_true',
default=True,
help='Show Full Details for the run')
return parser
@ -437,8 +436,10 @@ class TripleOValidatorShowRun(command.Command):
print(json.dumps(d, indent=4, sort_keys=True))
else:
for d in data:
for p in d['plays']:
print(json.dumps(p['tasks'], indent=4, sort_keys=True))
for p in d.get('validation_output', []):
print(json.dumps(p['tasks'],
indent=4,
sort_keys=True))
else:
raise exceptions.CommandError(
"Could not find the log file linked to this UUID: %s" %