From 4a6193b5d2cab2aaf4a5b3dfeb9b460d77677a2d Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Mon, 27 Aug 2012 09:36:36 -0700 Subject: Adds api sample testing for extensions endpoint Includes minor updates to base class to handle multiline descriptions and makes the extensions endpoint use a sorted list of extensions. Change-Id: I3604e3969b892646d5bbe08af44d454ee40e6f9e --- nova/api/openstack/extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/extensions.py b/nova/api/openstack/extensions.py index 716dccd75..e7334123a 100644 --- a/nova/api/openstack/extensions.py +++ b/nova/api/openstack/extensions.py @@ -151,7 +151,7 @@ class ExtensionsResource(wsgi.Resource): @wsgi.serializers(xml=ExtensionsTemplate) def index(self, req): extensions = [] - for _alias, ext in self.extension_manager.extensions.iteritems(): + for ext in self.extension_manager.sorted_extensions(): extensions.append(self._translate(ext)) return dict(extensions=extensions) -- cgit