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