Merge "VMAX driver - Close ecom connections" into stable/ocata
This commit is contained in:
commit
a88323dfb4
|
@ -284,7 +284,6 @@ def wbem_request(url, data, creds, headers=None, debug=0, x509=None,
|
||||||
elif no_verification:
|
elif no_verification:
|
||||||
ca_certs = None
|
ca_certs = None
|
||||||
|
|
||||||
if use_ssl:
|
|
||||||
h = HTTPSConnection(
|
h = HTTPSConnection(
|
||||||
host,
|
host,
|
||||||
port=port,
|
port=port,
|
||||||
|
@ -325,6 +324,7 @@ def wbem_request(url, data, creds, headers=None, debug=0, x509=None,
|
||||||
|
|
||||||
response = h.getresponse()
|
response = h.getresponse()
|
||||||
body = response.read()
|
body = response.read()
|
||||||
|
h.close()
|
||||||
|
|
||||||
if response.status != 200:
|
if response.status != 200:
|
||||||
raise pywbem.cim_http.Error('HTTP error')
|
raise pywbem.cim_http.Error('HTTP error')
|
||||||
|
|
Loading…
Reference in New Issue