Mei Liu has uploaded a new change for review.
Change subject: mom: Fix balloon libvirt interface exception
......................................................................
mom: Fix balloon libvirt interface exception
xml_domain.findall function in _getGuaranteedMemory throws
SyntaxError("cannot use absolute path on element"), so this
patch fixes this by not using absolute path.
Change-Id: Iea9dc8cf0ac51de9747a0ebc938761e8ce7135ed
Signed-off-by: MeiLiu <[email protected]>
---
M mom/HypervisorInterfaces/libvirtInterface.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/76/17776/1
diff --git a/mom/HypervisorInterfaces/libvirtInterface.py
b/mom/HypervisorInterfaces/libvirtInterface.py
index c00f3cf..a1bf71b 100644
--- a/mom/HypervisorInterfaces/libvirtInterface.py
+++ b/mom/HypervisorInterfaces/libvirtInterface.py
@@ -215,7 +215,7 @@
memory (KiB) defined there. If the element is missing, return 0
"""
xml_domain = ElementTree.fromstring(domain.XMLDesc(0))
- elements = xml_domain.findall("/domain/memtune/min_guarantee")
+ elements = xml_domain.findall("./memtune/min_guarantee")
if elements:
return elements[0].text
else:
--
To view, visit http://gerrit.ovirt.org/17776
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea9dc8cf0ac51de9747a0ebc938761e8ce7135ed
Gerrit-PatchSet: 1
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: Mei Liu <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches