Suppress warnings on CentOS when installing gmp

...and other warnings.

https://trello.com/c/heqXqTNM/187-centos-6-5-gmp-error-during-run-requires-setup-playbook-improvements
This commit is contained in:
Luke Sneeringer 2014-08-08 11:38:10 -05:00
parent affa675819
commit 6747d0690a

View File

@ -756,8 +756,13 @@ class HostSerializer(BaseSerializerWithVariables):
d['last_job']['job_template_name'] = obj.last_job.job_template.name
except (KeyError, AttributeError):
pass
d.update({'recent_jobs': [{'id': j.job.id, 'name': j.job.job_template.name if j.job.job_template is not None else "", 'status': j.job.status,
'finished': j.job.finished} for j in obj.job_host_summaries.all().order_by('-created')[:5]]})
d.update({'recent_jobs': [{
'id': j.job.id,
'name': j.job.job_template.name if j.job.job_template is not None
else "",
'status': j.job.status,
'finished': j.job.finished,
} for j in obj.job_host_summaries.filter(job__active=True).order_by('-created')[:5]]})
return d
def _get_host_port_from_name(self, name):