]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Delete type call in api needs update to use ID.
authorJohn Griffith <john.griffith@solidfire.com>
Thu, 6 Dec 2012 20:36:23 +0000 (13:36 -0700)
committerJohn Griffith <john.griffith@solidfire.com>
Thu, 6 Dec 2012 20:44:20 +0000 (13:44 -0700)
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

index 801d686e85c9891a0c5125dfb14ae7138445988c..e043db25b86a3fa2ebc0969dba561506380c28b7 100644 (file)
@@ -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()