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.
pull/18777/head
Maciej Delmanowski 9 years ago committed by Matt Clay
parent 8a1abfdd92
commit 2fde14aaf1

@ -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")

Loading…
Cancel
Save