Remove memcached support, alter host fields to not show some expensive

summary elements

Conflicts:
	CONTRIBUTING.md
	setup/roles/packages_el/vars/default.yml
	setup/roles/packages_ubuntu/tasks/main.yml
This commit is contained in:
Matthew Jones
2014-05-19 10:39:49 -04:00
parent 6cfdaca856
commit 989aa180ce
2 changed files with 2 additions and 27 deletions

View File

@@ -756,7 +756,8 @@ class HostSerializer(BaseSerializerWithVariables):
d['last_job']['job_template_name'] = obj.last_job.job_template.name
except (KeyError, AttributeError):
pass
d.update(obj.get_cached_summary_values())
d.update({'recent_jobs': [{'id': j.job.id, 'name': j.job.job_template.name, 'status': j.job.status,
'finished': j.job.finished} for j in obj.job_host_summaries.all().order_by('-created')[:5]]})
return d
def _get_host_port_from_name(self, name):