From dee4c862f241a6f12fdb6f0e7c48b32063ef6fe5 Mon Sep 17 00:00:00 2001 From: saurabh Date: Thu, 19 Sep 2013 23:37:35 +0530 Subject: [PATCH] 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 --- cinder/api/v2/router.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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')) -- 2.45.2