storagepool: Fix backtrace in cleanup path

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-02-19 14:04:45 -05:00
parent 9c0a132f2a
commit cfc438c024

View File

@ -185,7 +185,7 @@ class vmmStoragePool(vmmLibvirtObject):
def _cleanup(self):
vmmLibvirtObject._cleanup(self)
for vol in self._volumes:
for vol in (self._volumes or []):
vol.cleanup()
self._volumes = None