Merge "Only fail Volume deletion in 'error_deleting' state"

This commit is contained in:
Jenkins authored and Gerrit Code Review committed 2015-09-24 07:38:02 +00:00
commit 8f1ff524f8
1 file changed
+1 -1
+1 -1
View File
@@ -155,7 +155,7 @@ class BaseVolume(resource.Resource):
self.client_plugin().ignore_not_found(ex)
prg.delete['complete'] = True
return True
if 'error' in vol.status.lower():
if vol.status.lower() == 'error_deleting':
raise exception.ResourceInError(status_reason='delete',
resource_status=vol.status)
else: