summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--virtinst/connection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/virtinst/connection.py b/virtinst/connection.py
index d6d66fca..0b2fbb04 100644
--- a/virtinst/connection.py
+++ b/virtinst/connection.py
@@ -249,6 +249,9 @@ class VirtualConnection(object):
poollist = self._fetch_cache[self._FETCH_KEY_POOLS]
poolxmlobj = self._build_pool_raw(poolobj)
poollist.append(poolxmlobj)
+
+ if self._FETCH_KEY_VOLS not in self._fetch_cache:
+ return
vollist = self._fetch_cache[self._FETCH_KEY_VOLS]
vollist.extend(self._fetch_vols_raw(poolxmlobj))