]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix exception parameter name
authorEarle F. Philhower, III <earle.philhower.iii@hgst.com>
Thu, 4 Jun 2015 21:57:50 +0000 (14:57 -0700)
committerEarle F. Philhower, III <earle.philhower.iii@hgst.com>
Thu, 4 Jun 2015 21:59:47 +0000 (14:59 -0700)
Trivial fix for an exception parameter being passed in via the
wrong named parameter.

Change-Id: I55cb8b181dea58b7feea8f715ae06942d6e4c784
Closes-Bug: 1462096

cinder/volume/drivers/datera.py

index 030b4f85d3ddb331e5fc8a50a92a57630f9fe7b1..276867f4d76a2fbc72596e2d063b58f5297267e0 100644 (file)
@@ -129,7 +129,8 @@ class DateraDriver(san.SanISCSIDriver):
         if result['status'] == 'available':
             return
         else:
-            raise exception.VolumeDriverException(msg=_('Resource not ready.'))
+            raise exception.VolumeDriverException(message=
+                                                  _('Resource not ready.'))
 
     def _create_resource(self, resource, resource_type, body):
         result = self._issue_api_request(resource_type, 'post', body=body)