mirror of
https://github.com/ceph/ceph
synced 2024-12-14 15:35:45 +00:00
More idiomatic Python.
This commit is contained in:
parent
ce041a525c
commit
6e73607147
@ -147,13 +147,9 @@ def ls():
|
||||
else:
|
||||
raise
|
||||
|
||||
for key in ['owner', 'description']:
|
||||
if not key in summary:
|
||||
summary[key] = '-'
|
||||
|
||||
print "{job} {success} {owner} {desc}".format(
|
||||
job=j,
|
||||
owner=summary['owner'],
|
||||
desc=summary['description'],
|
||||
owner=summary.get('owner', '-'),
|
||||
desc=summary.get('description', '-'),
|
||||
success='pass' if summary['success'] else 'FAIL',
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user