From: saurabh Date: Thu, 19 Sep 2013 18:07:35 +0000 (+0530) Subject: Added mapper for snapshot_metadata X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=dee4c862f241a6f12fdb6f0e7c48b32063ef6fe5;p=openstack-build%2Fcinder-build.git Added mapper for snapshot_metadata cinder/api/v2/snapshot_metadata.py exist with all actions but mapper missing for it. Closes-bug: 1227799 Change-Id: I9a95c68a8de620626042951fa15a555621ebbc17 --- diff --git a/cinder/api/v2/router.py b/cinder/api/v2/router.py index e3e51399f..bcd668470 100644 --- a/cinder/api/v2/router.py +++ b/cinder/api/v2/router.py @@ -24,6 +24,7 @@ WSGI middleware for OpenStack Volume API. from cinder.api import extensions import cinder.api.openstack from cinder.api.v2 import limits +from cinder.api.v2 import snapshot_metadata from cinder.api.v2 import snapshots from cinder.api.v2 import types from cinder.api.v2 import volumes @@ -68,3 +69,12 @@ class APIRouter(cinder.api.openstack.APIRouter): self.resources['limits'] = limits.create_resource() mapper.resource("limit", "limits", controller=self.resources['limits']) + + self.resources['snapshot_metadata'] = \ + snapshot_metadata.create_resource() + snapshot_metadata_controller = self.resources['snapshot_metadata'] + + mapper.resource("snapshot_metadata", "metadata", + controller=snapshot_metadata_controller, + parent_resource=dict(member_name='snapshot', + collection_name='snapshots'))