mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Revert earlier vmware change for ssl cert checking.
This commit is contained in:
parent
db8a281ab8
commit
6c9bf76e19
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ def get_service_instance(host, username, password, protocol=None, port=None):
|
|||
default_msg = 'Could not connect to host \'{0}\'. ' \
|
||||
'Please check the debug log for more information.'.format(host)
|
||||
try:
|
||||
if (isinstance(exc, vim.fault.HostConnectFault) and 'certificate verify failed' in exc.msg.lower()) or 'certificate verify failed' in str(exc).lower():
|
||||
if (isinstance(exc, vim.fault.HostConnectFault) and '[SSL: CERTIFICATE_VERIFY_FAILED]' in exc.msg) or '[SSL: CERTIFICATE_VERIFY_FAILED]' in str(exc):
|
||||
import ssl
|
||||
default_context = ssl._create_default_https_context
|
||||
ssl._create_default_https_context = ssl._create_unverified_context
|
||||
|
|
Loading…
Add table
Reference in a new issue