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

This commit is contained in:
Jenkins 2015-09-24 07:38:02 +00:00 committed by Gerrit Code Review
commit 8f1ff524f8

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: