From 055a31ba0733be97e534786db29f0554d5161d70 Mon Sep 17 00:00:00 2001 From: Maciej Delmanowski Date: Sat, 25 Jul 2015 18:21:10 +0200 Subject: [PATCH] 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. --- cloud/misc/virt_pool.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cloud/misc/virt_pool.py b/cloud/misc/virt_pool.py index 12cd85a07e8..dbe173567c8 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")