pyocf: clean-up hanging device reference
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
a0c6995189
commit
b1b3e134cf
@ -300,6 +300,8 @@ class Cache:
|
|||||||
c.wait()
|
c.wait()
|
||||||
self.write_unlock()
|
self.write_unlock()
|
||||||
|
|
||||||
|
self.device = None
|
||||||
|
|
||||||
if c.results["error"]:
|
if c.results["error"]:
|
||||||
raise OcfError("Failed to detach failover cache device", c.results["error"])
|
raise OcfError("Failed to detach failover cache device", c.results["error"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user