]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Corrected order of parameters in docstring
authorPranaliDeore <pranali11.deore@nttdata.com>
Thu, 6 Aug 2015 09:18:49 +0000 (02:18 -0700)
committerPranaliDeore <pranali11.deore@nttdata.com>
Thu, 6 Aug 2015 11:34:07 +0000 (04:34 -0700)
In _v1_restore_factory and _v2_restore_factory methods,
invalid order of parameters given in docstring.

Changed the order of parameters in docstring.

Closes-Bug: #1482184
Change-Id: I7899f8b04b41f271b3d64ec54199dfc414620873

cinder/backup/driver.py

index ebbc25c8142ed08b929795ea610b1ce1dc3b4044..9cffd7dec4006b211819a0f64a85e752512a2803 100644 (file)
@@ -248,7 +248,7 @@ class BackupMetadataAPI(base.Base):
 
         Returns a dictionary of the form:
 
-            {<type tag>: (<fields list>, <restore function>)}
+            {<type tag>: (<restore function>, <fields list>)}
 
         Empty field list indicates that all backed up fields should be
         restored.
@@ -263,7 +263,7 @@ class BackupMetadataAPI(base.Base):
 
         Returns a dictionary of the form:
 
-            {<type tag>: (<fields list>, <restore function>)}
+            {<type tag>: (<restore function>, <fields list>)}
 
         Empty field list indicates that all backed up fields should be
         restored.