From ad770a3eaeaea9c00871a8b45157adc85dba6c79 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Thu, 6 Dec 2012 13:36:23 -0700 Subject: [PATCH] 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 --- cinder/api/contrib/types_manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.45.2