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
0da9254537
commit
8b2cc4f7bb
1 changed files with 1 additions and 7 deletions
|
@ -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…
Reference in a new issue