From: John Griffith Date: Thu, 6 Dec 2012 20:36:23 +0000 (-0700) Subject: Delete type call in api needs update to use ID. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ad770a3eaeaea9c00871a8b45157adc85dba6c79;p=openstack-build%2Fcinder-build.git Delete type call in api needs update to use ID. https://github.com/openstack/cinder/commit/51a438c8f3f0d13c6779602264d72cde82feab9c Introduced UUID's for volume_type ID and also changed delete to use ID instead of name. That changed neglected to update the call in contrib/types_manage, this patch fixes that. Fixes bug 1087161 Change-Id: I839228cd656afaf68caedfe673f9191488ccc397 --- diff --git a/cinder/api/contrib/types_manage.py b/cinder/api/contrib/types_manage.py index 801d686e8..e043db25b 100644 --- a/cinder/api/contrib/types_manage.py +++ b/cinder/api/contrib/types_manage.py @@ -70,7 +70,7 @@ class VolumeTypesManageController(wsgi.Controller): try: vol_type = volume_types.get_volume_type(context, id) - volume_types.destroy(context, vol_type['name']) + volume_types.destroy(context, vol_type['id']) except exception.NotFound: raise webob.exc.HTTPNotFound()