Fix a bug with self signed certificates and creating a new VM

- Removed the GetConnection call as all this does is cause connections that are connected with the overrides for "CERTIFICATE_VERIFY_FAILED" to not be able to connect the 2nd time the si is fetched
This commit is contained in:
Daniel Hobley 2016-06-02 09:20:14 +02:00 committed by rallytime
parent b3ec39d644
commit 1505c5724b

View file

@ -187,7 +187,6 @@ def get_service_instance(host, username, password, protocol=None, port=None):
service_instance = GetSi()
if service_instance:
if service_instance._GetStub().host == ':'.join([host, str(port)]):
service_instance._GetStub().GetConnection()
return service_instance
Disconnect(service_instance)