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.
reviewable/pr18780/r1
Maciej Delmanowski 9 years ago
parent 1fd1460d2f
commit 055a31ba07

@ -202,12 +202,6 @@ class LibvirtConnection(object):
self.module = module 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: if not conn:

Loading…
Cancel
Save