storagepool: cleanup() volumes on pool cleanup()
Fixes connection leaks Resolves: #172 Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
d9c6df951f
commit
2773bc35bf
|
@ -185,6 +185,8 @@ class vmmStoragePool(vmmLibvirtObject):
|
|||
|
||||
def _cleanup(self):
|
||||
vmmLibvirtObject._cleanup(self)
|
||||
for vol in self._volumes:
|
||||
vol.cleanup()
|
||||
self._volumes = None
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue