]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Change the froce delete volume flage to True
authorRick Chen <rick.chen@prophetstor.com>
Sat, 16 Aug 2014 03:56:01 +0000 (11:56 +0800)
committerRick Chen <rick.chen@prophetstor.com>
Sat, 16 Aug 2014 16:21:34 +0000 (00:21 +0800)
The ProphetStor storage volume unable to remove if this has
assignee on other service or application. We make sure the volume
created by the cinder, and the cinder has the privileges to delete
volume.

Change-Id: I06fa7097f4c2320c346e286b0e0fc73ada1c7f8e
Closes-Bug: 1357629

cinder/volume/drivers/prophetstor/dplcommon.py

index 7a738c41b21909b05d49ff73f4d4afd68a182447..3bc76513d6a7e1968ff88b757a92c4968097383f 100644 (file)
@@ -269,7 +269,7 @@ class DPLVolume(object):
                              url, params,
                              [httplib.OK, httplib.ACCEPTED, httplib.CREATED])
 
-    def delete_vdev(self, volumeID, force=False):
+    def delete_vdev(self, volumeID, force=True):
         method = 'DELETE'
         metadata = {}
         params = {}