1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix opening libvirt esx connection

This commit is contained in:
Alex Kalinin 2016-02-10 18:52:08 -08:00 committed by Matt Clay
parent 51e034a8cc
commit 126f8b709f

View file

@ -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)