virtManager: object: domain: Simplify agent ready check
Just return the boolean value of the condition for simlicity. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
This commit is contained in:
parent
e4f68764b0
commit
827c948121
|
@ -1089,9 +1089,7 @@ class vmmDomain(vmmLibvirtObject):
|
||||||
# we need to get a fresh agent channel object on each call so it
|
# we need to get a fresh agent channel object on each call so it
|
||||||
# reflects the current state
|
# reflects the current state
|
||||||
dev = self._get_agent()
|
dev = self._get_agent()
|
||||||
if dev and dev.target_state == "connected":
|
return dev and dev.target_state == "connected"
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def refresh_interface_addresses(self, iface):
|
def refresh_interface_addresses(self, iface):
|
||||||
self._ip_cache = {"qemuga": {}, "arp": {}}
|
self._ip_cache = {"qemuga": {}, "arp": {}}
|
||||||
|
|
Loading…
Reference in New Issue