summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-02-10 08:21:27 +0000
committerMark McLoughlin <markmc@redhat.com>2012-02-10 08:21:27 +0000
commitea3513b16f6b74fe8a868ae214cd81778246cb91 (patch)
treeaa1107d758a7497cf40014d5bb4821ff40eb0fa8 /nova/api
parent5ad971810aaedcf5c9efd1b56add0e23921899ae (diff)
downloadnova-ea3513b16f6b74fe8a868ae214cd81778246cb91.tar.gz
nova-ea3513b16f6b74fe8a868ae214cd81778246cb91.tar.xz
nova-ea3513b16f6b74fe8a868ae214cd81778246cb91.zip
Remove unused compute_service from images controller
Seems to be unused since v1.0 was removed; it used to be needed for snapshot support. Change-Id: I799ea4b188e396548792006e5a40dfab96d37957
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/images.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/api/openstack/compute/images.py b/nova/api/openstack/compute/images.py
index fed326f66..76022a627 100644
--- a/nova/api/openstack/compute/images.py
+++ b/nova/api/openstack/compute/images.py
@@ -94,15 +94,13 @@ class Controller(wsgi.Controller):
_view_builder_class = views_images.ViewBuilder
- def __init__(self, image_service=None, compute_service=None, **kwargs):
+ def __init__(self, image_service=None, **kwargs):
"""Initialize new `ImageController`.
- :param compute_service: `nova.compute.api:API`
:param image_service: `nova.image.glance:GlancemageService`
"""
super(Controller, self).__init__(**kwargs)
- self._compute_service = compute_service or compute.API()
self._image_service = image_service or \
nova.image.get_default_image_service()