teuthology-ls: tolerate non-existent 'success' key in summary file

This commit is contained in:
Josh Durgin 2012-06-20 10:13:48 -07:00
parent 233bc8dd8e
commit 218b69246f

View File

@ -200,7 +200,7 @@ def ls():
job=j,
owner=summary.get('owner', '-'),
desc=summary.get('description', '-'),
success='pass' if summary['success'] else 'FAIL',
success='pass' if summary.get('success', False) else 'FAIL',
duration=int(summary.get('duration', 0)),
)
if args.verbose and 'failure_reason' in summary: