mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
If duration is missing from summary.yaml, use 0
This commit is contained in:
parent
db92bb9140
commit
d83912e0bf
@ -533,7 +533,7 @@ def build_email_body(name, archive_dir, timeout):
|
||||
passed[job] = email_templates['pass_templ'].format(
|
||||
job_id=job,
|
||||
desc=summary.get('description'),
|
||||
time=int(summary.get('duration')),
|
||||
time=int(summary.get('duration'), 0),
|
||||
)
|
||||
else:
|
||||
log = misc.get_http_log_path(archive_dir, job)
|
||||
@ -558,7 +558,7 @@ def build_email_body(name, archive_dir, timeout):
|
||||
failed[job] = email_templates['fail_templ'].format(
|
||||
job_id=job,
|
||||
desc=summary.get('description'),
|
||||
time=int(summary.get('duration')),
|
||||
time=int(summary.get('duration', 0)),
|
||||
reason=reason,
|
||||
log_line=log_line,
|
||||
sentry_line=sentry_line,
|
||||
|
Loading…
Reference in New Issue
Block a user