diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-09-01 12:35:26 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-09-01 14:27:11 -0400 |
commit | e45a2228dcbaa7e400509f57eece4c2b1d3b380e (patch) | |
tree | 6174e07753ecef4a348c526ae1d83423568b38dc /virtManager/object/domain.py | |
parent | 8ff0da7664e38df8c34070374d7d5d395833563a (diff) | |
download | virt-manager-e45a2228dcbaa7e400509f57eece4c2b1d3b380e.tar.gz |
objects: Erase the notion of connkey
Make it explicit that all uses of this is actually the object
name. We already leaked this abstraction in several places so better
to make it explicit. This also communicates to users that this is a
field that is not immutable so it shouldn't be used as a unique key
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object/domain.py')
-rw-r--r-- | virtManager/object/domain.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index feccfc6a..1a45271f 100644 --- a/virtManager/object/domain.py +++ b/virtManager/object/domain.py @@ -75,7 +75,7 @@ class _IPFetcher: self._cache = {"qemuga": {}, "arp": {}} if iface.type == "network": - net = vm.conn.get_net(iface.source) + net = vm.conn.get_net_by_name(iface.source) if net: net.get_dhcp_leases(refresh=True) @@ -99,7 +99,7 @@ class _IPFetcher: arp = self._cache["arp"] leases = [] if iface.type == "network": - net = vm.conn.get_net(iface.source) + net = vm.conn.get_net_by_name(iface.source) if net: leases = net.get_dhcp_leases() @@ -184,9 +184,6 @@ class vmmDomainSnapshot(vmmLibvirtObject): # Required class methods # ########################## - def _backend_get_name(self): - return self._backend.getName() - def _conn_tick_poll_param(self): return None # pragma: no cover def class_name(self): |