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:
parent
e87d7463fe
commit
38054d9882
2 changed files with 28 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue