Remove separate check for Xen

Module checked for Xen-based system, however since 'xen:///' URI support
exists in 'libvirt', we should use it explicitly instead.
This commit is contained in:
Maciej Delmanowski 2015-07-25 18:11:52 +02:00 committed by Matt Clay
parent 8a1abfdd92
commit 2fde14aaf1

View file

@ -164,13 +164,7 @@ class LibvirtConnection(object):
self.module = module
cmd = "uname -r"
rc, stdout, stderr = self.module.run_command(cmd)
if "xen" in stdout:
conn = libvirt.open(None)
else:
conn = libvirt.open(uri)
conn = libvirt.open(uri)
if not conn:
raise Exception("hypervisor connection failure")