Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Initial orchestrator support
Browse files Browse the repository at this point in the history
Firstly, don't traceback when the annotations do not reveal the size
of the tar archive.

Signed-off-by: Tim Waugh <twaugh@redhat.com>
  • Loading branch information
twaugh committed Jun 8, 2017
1 parent 088a1b3 commit 604fd03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_stats(self):

tput = 0
for build in builds:
upload_size_mb = 'nan'
name = build['metadata']['name']
completionTimestamp = build['status']['completionTimestamp']
completion = rfc3339_time(completionTimestamp)
Expand All @@ -122,7 +123,7 @@ def get_stats(self):
pending = start - creation
if pending < 0:
which = 'archived'
pending = upload_size_mb = 'nan'
pending = 'nan'
else:
which = 'current'

Expand Down

0 comments on commit 604fd03

Please sign in to comment.