storagepool: cleanup() volumes on pool cleanup()

Fixes connection leaks

Resolves: #172

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-11-10 12:41:32 -05:00
parent d9c6df951f
commit 2773bc35bf
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ class vmmStoragePool(vmmLibvirtObject):
def _cleanup(self):
vmmLibvirtObject._cleanup(self)
for vol in self._volumes:
vol.cleanup()
self._volumes = None