summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2008-09-10 15:02:49 -0400
committerCole Robinson <crobinso@redhat.com>2008-09-10 15:02:49 -0400
commitb77e94646ac1b4e95182fb2067e881655443dd2a (patch)
treee6272716949a24675b9ef53bd548dbac6933c8eb
parent11bc1d395174ca98a99736f5f94e97ffdc157fed (diff)
downloadvirt-manager-b77e94646ac1b4e95182fb2067e881655443dd2a.tar.gz
Only poll storage if conn is storage capable.
-rw-r--r--src/virtManager/connection.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/virtManager/connection.py b/src/virtManager/connection.py
index ca68a63d..4e5e0345 100644
--- a/src/virtManager/connection.py
+++ b/src/virtManager/connection.py
@@ -150,6 +150,7 @@ class vmmConnection(gobject.GObject):
self.state = self.STATE_DISCONNECTED
self.vmm = None
+ self.storage_capable = None
# Connection Storage pools: UUID -> vmmStoragePool
self.pools = {}
@@ -696,6 +697,12 @@ class vmmConnection(gobject.GObject):
newActivePoolNames = []
newInactivePoolNames = []
+ if self.storage_capable == None:
+ self.storage_capable = virtinst.util.is_storage_capable(self.vmm)
+
+ if not self.storage_capable:
+ return (stopPools, startPools, origPools, newPools, currentPools)
+
try:
newActivePoolNames = self.vmm.listStoragePools()
except: