]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix error message in cinder/api/v2/volumes.py
authorlisali <xiaoyan.li@intel.com>
Thu, 30 Jul 2015 03:18:25 +0000 (11:18 +0800)
committerlisali <xiaoyan.li@intel.com>
Thu, 30 Jul 2015 03:20:21 +0000 (11:20 +0800)
Minor fix.

Change-Id: I1269e271581cc523368b3e59fe4b8ced4febf9de
Closes-Bug: #1479598

cinder/api/v2/volumes.py

index ad32c9bbec4b5e778d158b1c71cd77eb6f33a0a7..852515cc0121eef8899fc4d253514170a075c6cd 100644 (file)
@@ -385,7 +385,7 @@ class VolumeController(wsgi.Controller):
                                                      source_replica)
                 if src_vol['replication_status'] == 'disabled':
                     explanation = _('source volume id:%s is not'
-                                    ' replicated') % source_volid
+                                    ' replicated') % source_replica
                     raise exc.HTTPBadRequest(explanation=explanation)
                 kwargs['source_replica'] = src_vol
             except exception.VolumeNotFound as error: