pyocf: clean-up hanging device reference

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2022-06-20 09:42:23 +02:00
parent a0c6995189
commit b1b3e134cf

View File

@ -300,6 +300,8 @@ class Cache:
c.wait()
self.write_unlock()
self.device = None
if c.results["error"]:
raise OcfError("Failed to detach failover cache device", c.results["error"])