]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix volume transfer href issue
authorliudong <liudong78@huawei.com>
Tue, 22 Oct 2013 10:37:50 +0000 (18:37 +0800)
committerliudong <liudong78@huawei.com>
Tue, 22 Oct 2013 10:57:10 +0000 (18:57 +0800)
The volume transfer collection in url defined as "os-volume-tranfer",
but I got another define "tranfers" in href url. They are different.
So it should be modify.

Change-Id: I69a43012f2bb70ce5fc7b0331d2759527a261170
closes-bug: #1242980

cinder/api/views/transfers.py

index 2b8b54e0cbb7c00e8a40a6ed0cc9bbe17ddf1efa..3cc757f862200e463882472dd7cef94de601bdc8 100644 (file)
@@ -23,7 +23,7 @@ LOG = logging.getLogger(__name__)
 class ViewBuilder(common.ViewBuilder):
     """Model transfer API responses as a python dictionary."""
 
-    _collection_name = "transfers"
+    _collection_name = "os-volume-transfer"
 
     def __init__(self):
         """Initialize view builder."""