commit 7a886974d172caa4561d62f232d417697a45836b
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Mon Dec 2 19:37:49 2013 +0100
VirtUtils: be compatible with older libvirt python bindings
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(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Common/VirtUtils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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
Show replies by date