mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
populate hostinfo earlier in tick function so it isn't accessed uninitialized.
This commit is contained in:
parent
0e0f4b8da0
commit
1401dff4e2
@ -869,6 +869,8 @@ class vmmConnection(gobject.GObject):
|
||||
if self.state != self.STATE_ACTIVE:
|
||||
return
|
||||
|
||||
self.hostinfo = self.vmm.getInfo()
|
||||
|
||||
# Poll for new virtual network objects
|
||||
(startNets, stopNets, newNets,
|
||||
oldNets, self.nets) = self._update_nets()
|
||||
@ -911,10 +913,6 @@ class vmmConnection(gobject.GObject):
|
||||
|
||||
# Finally, we sample each domain
|
||||
now = time()
|
||||
try:
|
||||
self.hostinfo = self.vmm.getInfo()
|
||||
except:
|
||||
logging.warn("Unable to get host information")
|
||||
|
||||
updateVMs = self.vms
|
||||
if noStatsUpdate:
|
||||
|
Loading…
Reference in New Issue
Block a user