Dell EMC SC: Error Deleting Consistency Group

Checking a return on something that doesn't return.

Closes-Bug:  #1752930

Change-Id: I5b6ae809814517657390b91878b917383eabd543
This commit is contained in:
Tom Swanson 2018-03-01 18:22:06 -06:00
parent b53574cfb7
commit e337cdd407

View File

@ -876,8 +876,9 @@ class SCCommonDriver(driver.ManageableVD,
for volume in volumes:
status = fields.GroupStatus.ERROR
try:
if self.delete_volume(volume):
status = fields.GroupStatus.DELETED
self.delete_volume(volume)
# We throw if that fails.
status = fields.GroupStatus.DELETED
except (exception.VolumeBackendAPIException,
exception.VolumeIsBusy):
LOG.error('delete_group: error deleting volume %s',