From 33acd68b7c1112c43a6ba61bb10df760bd581d56 Mon Sep 17 00:00:00 2001 From: Rongze Zhu Date: Sun, 19 Aug 2012 08:47:36 +0000 Subject: Fix typo in call in cinder.API unreserve_volume Fixes bug #1038599 def unreserve_volume(self, context, volume): - cinderclient(context).volumes.reserve(volume['id']) + cinderclient(context).volumes.unreserve(volume['id']) Change-Id: Ida96b01d93f2e82fe842fa93c1a8edbc27434279 --- nova/volume/cinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/volume/cinder.py b/nova/volume/cinder.py index 1aa7dcd2b..ed6b3cd59 100644 --- a/nova/volume/cinder.py +++ b/nova/volume/cinder.py @@ -149,7 +149,7 @@ class API(base.Base): cinderclient(context).volumes.reserve(volume['id']) def unreserve_volume(self, context, volume): - cinderclient(context).volumes.reserve(volume['id']) + cinderclient(context).volumes.unreserve(volume['id']) def attach(self, context, volume, instance_uuid, mountpoint): cinderclient(context).volumes.attach(volume['id'], -- cgit