diff options
author | Cole Robinson <crobinso@redhat.com> | 2013-07-09 19:50:49 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2013-07-10 20:09:51 -0400 |
commit | 318ba7e474da9b36bc636b0a314f6855ad086594 (patch) | |
tree | a2e1ce636720a5fa325aeb3a48e8ccbc5a7d068c /virtManager/connection.py | |
parent | 97264a3dfe9ef7f17997dfdd554e581e1f831210 (diff) | |
download | virt-manager-318ba7e474da9b36bc636b0a314f6855ad086594.tar.gz |
VirtualConnection: Deal with Guest objects, not raw XML
We already do XML parsing, no need to open code it elsewhere
Diffstat (limited to 'virtManager/connection.py')
-rw-r--r-- | virtManager/connection.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/virtManager/connection.py b/virtManager/connection.py index 038dded9..4bb6bac9 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -135,7 +135,9 @@ class vmmConnection(vmmGObject): ################# def _init_virtconn(self): - self._backend.cb_fetch_all_guests = lambda: self.vms.values() + self._backend.cb_fetch_all_guests = ( + lambda: [vm.get_guest_for_virtinst_func(refresh_if_nec=False) + for vm in self.vms.values()]) self._backend.cb_fetch_all_pools = lambda: self.pools.values() def _init_netdev(self): |