mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
storagepool: Fix backtrace in cleanup path
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
9c0a132f2a
commit
cfc438c024
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user