]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes typo in method name _notify_voloume_type_error
authorAswad Rangnekar <aswad.rangnekar@nttdata.com>
Wed, 30 Oct 2013 09:37:47 +0000 (02:37 -0700)
committerAswad Rangnekar <aswad.rangnekar@nttdata.com>
Wed, 30 Oct 2013 10:17:16 +0000 (03:17 -0700)
Closes-Bug: #1246228

Change-Id: I7b408f2c4085ba5af5fc4b539000e5675bdc5a76

cinder/api/contrib/types_manage.py

index 668c137924167b8e7aa59c9019c10d7025a337d7..9a3efee58e9306972539be5d44f2e14434ac5247 100644 (file)
@@ -36,7 +36,7 @@ class VolumeTypesManageController(wsgi.Controller):
 
     _view_builder_class = views_types.ViewBuilder
 
-    def _notify_voloume_type_error(self, context, method, payload):
+    def _notify_volume_type_error(self, context, method, payload):
         notifier_api.notify(context,
                             'volumeType',
                             method,
@@ -70,16 +70,16 @@ class VolumeTypesManageController(wsgi.Controller):
 
         except exception.VolumeTypeExists as err:
             notifier_err = dict(volume_types=vol_type, error_message=str(err))
-            self._notify_voloume_type_error(context,
-                                            'volume_type.create',
-                                            notifier_err)
+            self._notify_volume_type_error(context,
+                                           'volume_type.create',
+                                           notifier_err)
 
             raise webob.exc.HTTPConflict(explanation=str(err))
         except exception.NotFound as err:
             notifier_err = dict(volume_types=vol_type, error_message=str(err))
-            self._notify_voloume_type_error(context,
-                                            'volume_type.create',
-                                            notifier_err)
+            self._notify_volume_type_error(context,
+                                           'volume_type.create',
+                                           notifier_err)
             raise webob.exc.HTTPNotFound()
 
         return self._view_builder.show(req, vol_type)
@@ -99,16 +99,16 @@ class VolumeTypesManageController(wsgi.Controller):
                                 notifier_api.INFO, notifier_info)
         except exception.VolumeTypeInUse as err:
             notifier_err = dict(id=id, error_message=str(err))
-            self._notify_voloume_type_error(context,
-                                            'volume_type.delete',
-                                            notifier_err)
+            self._notify_volume_type_error(context,
+                                           'volume_type.delete',
+                                           notifier_err)
             msg = 'Target volume type is still in use.'
             raise webob.exc.HTTPBadRequest(explanation=msg)
         except exception.NotFound as err:
             notifier_err = dict(id=id, error_message=str(err))
-            self._notify_voloume_type_error(context,
-                                            'volume_type.delete',
-                                            notifier_err)
+            self._notify_volume_type_error(context,
+                                           'volume_type.delete',
+                                           notifier_err)
 
             raise webob.exc.HTTPNotFound()