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:
parent
8a1abfdd92
commit
2fde14aaf1
1 changed files with 1 additions and 7 deletions
|
@ -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…
Reference in a new issue