From deb71cf6643efbe47b383565f6dc5d346ada29a4 Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Mon, 12 Mar 2012 11:46:33 -0500 Subject: Add a serializer for os-quota-sets/defaults. This fixes bug 953182. Change-Id: I273a1d3559a8218a0b1e1f3d973e55d079e92062 --- nova/api/openstack/compute/contrib/quotas.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/quotas.py b/nova/api/openstack/compute/contrib/quotas.py index ce466af3f..196df0ea0 100644 --- a/nova/api/openstack/compute/contrib/quotas.py +++ b/nova/api/openstack/compute/contrib/quotas.py @@ -84,6 +84,7 @@ class QuotaSetsController(object): raise webob.exc.HTTPForbidden() return {'quota_set': quota.get_project_quotas(context, project_id)} + @wsgi.serializers(xml=QuotaTemplate) def defaults(self, req, id): authorize(req.environ['nova.context']) return self._format_quota_set(id, quota._get_default_quotas()) -- cgit