VMAX driver - Close ecom connections
Every secure connection to the ECOM was not being closed after
use. This fix closes each connection after use. Due to not being
able to mock pywbem there is no unit test for this fix.
Closes-Bug:
@@ -284,7 +284,6 @@ def wbem_request(url, data, creds, headers=None, debug=0, x509=None,
elif no_verification:
ca_certs = None
- if use_ssl:
h = HTTPSConnection(
host,
port=port,
@@ -325,6 +324,7 @@ def wbem_request(url, data, creds, headers=None, debug=0, x509=None,
response = h.getresponse()
body = response.read()
+ h.close()
if response.status != 200:
raise pywbem.cim_http.Error('HTTP error')
