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 0da9254537
commit 8b2cc4f7bb

@ -164,12 +164,6 @@ 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)
if not conn:

Loading…
Cancel
Save