Skip to content

Commit

Permalink
Fixes typo in method name _notify_voloume_type_error
Browse files Browse the repository at this point in the history
Closes-Bug: #1246228

Change-Id: I7b408f2c4085ba5af5fc4b539000e5675bdc5a76
  • Loading branch information
Aswad Rangnekar committed Oct 30, 2013
1 parent 75bcf70 commit a29a1d8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cinder/api/contrib/types_manage.py
Expand Up @@ -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,
Expand Down Expand Up @@ -70,16 +70,16 @@ def _create(self, req, body):

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)
Expand All @@ -99,16 +99,16 @@ def _delete(self, req, id):
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()

Expand Down

0 comments on commit a29a1d8

Please sign in to comment.