Merge pull request #1650 from camradal/devel
Fix opening libvirt esx connection
This commit is contained in:
commit
f6c5ed987f
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ class LibvirtConnection(object):
|
||||||
|
|
||||||
if "xen" in stdout:
|
if "xen" in stdout:
|
||||||
conn = libvirt.open(None)
|
conn = libvirt.open(None)
|
||||||
|
elif "esx" in uri:
|
||||||
|
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_NOECHOPROMPT], [], None]
|
||||||
|
conn = libvirt.openAuth(uri, auth)
|
||||||
else:
|
else:
|
||||||
conn = libvirt.open(uri)
|
conn = libvirt.open(uri)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue