From bba1dac0f07ac754d2e2395e619d102e3d4c6201 Mon Sep 17 00:00:00 2001 From: Alex Kalinin Date: Wed, 10 Feb 2016 18:52:08 -0800 Subject: [PATCH] Fix opening libvirt esx connection --- cloud/misc/virt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud/misc/virt.py b/cloud/misc/virt.py index b59c7ed3de3..65791e43e9f 100644 --- a/cloud/misc/virt.py +++ b/cloud/misc/virt.py @@ -128,6 +128,9 @@ class LibvirtConnection(object): if "xen" in stdout: conn = libvirt.open(None) + elif "esx" in uri: + auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_NOECHOPROMPT], [], None] + conn = libvirt.openAuth(uri, auth) else: conn = libvirt.open(uri)