1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

for instances add guest agent indicator: installed, connected.

This commit is contained in:
catborise 2019-12-25 14:36:43 +03:00
parent e87d7463fe
commit 38054d9882
2 changed files with 28 additions and 8 deletions

View file

@ -1417,10 +1417,10 @@ class wvmInstance(wvmConnect):
Return agent channel object if it is defined.
"""
for channel in doc.xpath('/domain/devices/channel'):
type = channel.get("type")
ch_type = channel.get("type")
target = channel.find("target")
target_name = target.get("name")
if type == "unix" and target_name == "org.qemu.guest_agent.0":
if ch_type == "unix" and target_name == "org.qemu.guest_agent.0":
return channel
return None