Libvirt python API changed between 0.10.2 (F18) and 1.0.5 (F19) and default parameter value in open() method has been added. This patch makes LNST able to run without error with older libvirt python bindings.
Signed-off-by: Jan Tluka jtluka@redhat.com --- lnst/Common/VirtUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Common/VirtUtils.py b/lnst/Common/VirtUtils.py index 9390714..f602c99 100644 --- a/lnst/Common/VirtUtils.py +++ b/lnst/Common/VirtUtils.py @@ -20,7 +20,7 @@ from lnst.Common.NetUtils import normalize_hwaddr, scan_netdevs #this is a global object because opening the connection to libvirt in every #object instance that uses it sometimes fails - the libvirt server probably #can't handle that many connections at a time -_libvirt_conn = libvirt.open() +_libvirt_conn = libvirt.open(None)
class VirtUtilsError(Exception): pass
lnst-developers@lists.fedorahosted.org