Fix raise UnableToFailover call in SolidFire
The SolidFire driver isn't raising the UnableToFailover exception properly. This fixes the call and adds the reason string. Change-Id: I2d018a29015f7db3dd51c90e262e70f4cceaac59 Closes-Bug: #1597483
This commit is contained in:
parent
6b337fd387
commit
d70ed62041
|
@ -1893,7 +1893,9 @@ class SolidFireDriver(san.SanISCSIDriver):
|
|||
"request, however replication is NOT "
|
||||
"enabled, or there are no available "
|
||||
"targets to fail-over to."))
|
||||
raise exception.UnableToFailOver
|
||||
raise exception.UnableToFailOver(reason=_("Failover requested "
|
||||
"on non replicated "
|
||||
"backend."))
|
||||
|
||||
remote_vols = self._map_sf_volumes(volumes,
|
||||
endpoint=remote['endpoint'])
|
||||
|
|
Loading…
Reference in New Issue