[GH-ISSUE #31] not read XML param #21

Closed
opened 2026-02-27 15:57:00 +03:00 by kerem · 2 comments
Owner

Originally created by @savichev on GitHub (Jul 1, 2015).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/31

Hi!
I add this code in file vrtManager/instance.py

def graphics_passwd(self, name):
    inst = self.get_instance(name)
    gpasswd = util.get_xml_path(inst.XMLDesc(0), "/domain/devices/graphics/@passwd")
    if gpasswd is None:
        return ''
    return gpasswd

result always is None.

Originally created by @savichev on GitHub (Jul 1, 2015). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/31 Hi! I add this code in file vrtManager/instance.py ``` python def graphics_passwd(self, name): inst = self.get_instance(name) gpasswd = util.get_xml_path(inst.XMLDesc(0), "/domain/devices/graphics/@passwd") if gpasswd is None: return '' return gpasswd ``` result always is None.
kerem closed this issue 2026-02-27 15:57:00 +03:00
Author
Owner

@savichev commented on GitHub (Jul 1, 2015):

for example

def graphics_type(self, name):
    inst = self.get_instance(name)
    gtype = util.get_xml_path(inst.XMLDesc(0), "/domain/devices/graphics/@type")
    return gtype

return the correct result

<!-- gh-comment-id:117664505 --> @savichev commented on GitHub (Jul 1, 2015): for example ``` python def graphics_type(self, name): inst = self.get_instance(name) gtype = util.get_xml_path(inst.XMLDesc(0), "/domain/devices/graphics/@type") return gtype ``` return the correct result
Author
Owner

@savichev commented on GitHub (Jul 1, 2015):

decision proved to zero

<!-- gh-comment-id:117679607 --> @savichev commented on GitHub (Jul 1, 2015): decision proved to zero
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#21
No description provided.