Merge "Exception type is not iterable so should change it to string type"

This commit is contained in:
Zuul 2021-02-19 21:01:11 +00:00 committed by Gerrit Code Review
commit d00663f5c2

View File

@ -723,7 +723,7 @@ class PowerMaxProvision(object):
array, source_device_id, "", snap_name, extra_specs,
snap_id=snap_id, restore=True)
except exception.VolumeBackendAPIException as ex:
if utils.REVERT_SS_EXC in ex:
if utils.REVERT_SS_EXC in str(ex):
exception_message = _(
"Link must be fully copied for this operation to proceed. "
"Please reset the volume state from error to available "