From: Aswad Rangnekar <aswad.rangnekar@nttdata.com>
Date: Wed, 30 Oct 2013 09:37:47 +0000 (-0700)
Subject: Fixes typo in method name _notify_voloume_type_error
X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a29a1d8802d2fde8d09bed08e0595b4c0f85cf7b;p=openstack-build%2Fcinder-build.git

Fixes typo in method name _notify_voloume_type_error

Closes-Bug: #1246228

Change-Id: I7b408f2c4085ba5af5fc4b539000e5675bdc5a76
---

diff --git a/cinder/api/contrib/types_manage.py b/cinder/api/contrib/types_manage.py
index 668c13792..9a3efee58 100644
--- a/cinder/api/contrib/types_manage.py
+++ b/cinder/api/contrib/types_manage.py
@@ -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()