]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Wrong comment line in quotas.py
authorWenjunWang1992 <10191230@zte.com.cn>
Mon, 14 Mar 2016 09:10:16 +0000 (17:10 +0800)
committerWenjunWang1992 <10191230@zte.com.cn>
Mon, 14 Mar 2016 09:10:16 +0000 (17:10 +0800)
The commonts are not suitable in the code below:
1)in function "show"
origin:
        :param id:target project id that needs to be updated
change to:
        :param id:target project id that needs to be shown
2)in function "delete"
origin:
        :param id:target project id that needs to be updated
change to:
        :param id:target project id that needs to be deleted

Change-Id: I5b14c400a3b0117e43f1192c3deac76cb81c2c1b
Closes-Bug: #1556761

cinder/api/contrib/quotas.py

index 84016d87df641f8542eb3e7d9da28ec7e001f160..264c04130e5703e2cde167a10137bb604a35314b 100644 (file)
@@ -163,7 +163,7 @@ class QuotaSetsController(wsgi.Controller):
         a show.
 
         :param req: request
-        :param id: target project id that needs to be updated
+        :param id: target project id that needs to be shown
         """
         context = req.environ['cinder.context']
         authorize_show(context)
@@ -352,7 +352,7 @@ class QuotaSetsController(wsgi.Controller):
         CLOUD admin are able to perform a delete.
 
         :param req: request
-        :param id: target project id that needs to be updated
+        :param id: target project id that needs to be deleted
         """
         context = req.environ['cinder.context']
         authorize_delete(context)