Fix the status badge logic again.

This commit is contained in:
jakedt 2014-03-05 15:14:12 -05:00
parent 7a89b0872f
commit 5f0969778e

View file

@ -220,7 +220,7 @@ def build_status_badge(namespace, repository):
status_name = 'ready' status_name = 'ready'
elif build and build.phase == 'error': elif build and build.phase == 'error':
status_name = 'failed' status_name = 'failed'
elif build: elif build and build.phase != 'complete':
status_name = 'building' status_name = 'building'
else: else:
status_name = 'none' status_name = 'none'