diff options
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/volume/__init__.py | 3 | ||||
| -rw-r--r-- | nova/api/openstack/volume/versions.py | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/nova/api/openstack/volume/__init__.py b/nova/api/openstack/volume/__init__.py index b4f72d8d5..f65fe8033 100644 --- a/nova/api/openstack/volume/__init__.py +++ b/nova/api/openstack/volume/__init__.py @@ -58,4 +58,5 @@ class APIRouter(nova.api.openstack.APIRouter): self.resources['snapshots'] = snapshots.create_resource() mapper.resource("snapshot", "snapshots", - controller=self.resources['snapshots']) + controller=self.resources['snapshots'], + collection={'detail': 'GET'}) diff --git a/nova/api/openstack/volume/versions.py b/nova/api/openstack/volume/versions.py index d4839ece4..f1c39a59c 100644 --- a/nova/api/openstack/volume/versions.py +++ b/nova/api/openstack/volume/versions.py @@ -22,8 +22,8 @@ from nova.api.openstack import wsgi VERSIONS = { - "v1": { - "id": "v1", + "v1.0": { + "id": "v1.0", "status": "CURRENT", "updated": "2012-01-04T11:33:21Z", "links": [ @@ -72,7 +72,7 @@ class VolumeVersionV1(object): atom=versions.VersionAtomSerializer) def show(self, req): builder = views_versions.get_view_builder(req) - return builder.build_version(VERSIONS['v2.0']) + return builder.build_version(VERSIONS['v1.0']) def create_resource(): |
