diff options
author | Maciej Delmanowski <drybjed@gmail.com> | 2015-07-25 18:21:10 +0200 |
---|---|---|
committer | Maciej Delmanowski <drybjed@gmail.com> | 2015-07-25 18:21:10 +0200 |
commit | 055a31ba0733be97e534786db29f0554d5161d70 (patch) | |
tree | 21a75131f027617514b11bc28c85fcf74f41a444 | |
parent | 1fd1460d2fc1c069d5caf214a5dda6f7b0584904 (diff) | |
download | ansible-modules-extras-055a31ba0733be97e534786db29f0554d5161d70.tar.gz |
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.
-rw-r--r-- | cloud/misc/virt_pool.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cloud/misc/virt_pool.py b/cloud/misc/virt_pool.py index 12cd85a0..dbe17356 100644 --- a/cloud/misc/virt_pool.py +++ b/cloud/misc/virt_pool.py @@ -202,13 +202,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") |