Merge branch 'fix-ssl-behind-proxy' of github.com:osu-sig/pyvmomi into fix-ssl-behind-proxy

This commit is contained in:
Stacy Brock
2014-02-17 12:48:47 -08:00

View File

@@ -427,6 +427,8 @@ def __GetServiceVersionDescription(protocol, server, port, path):
tree = ElementTree()
import urllib2
url = "%s://%s:%s/%s/vimServiceVersions.xml" % (protocol, server, port, path)
try:
with closing(urllib2.urlopen(url)) as sock: