mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules.tls.__virtual__: don't spam everyone's error log
This commit is contained in:
parent
76a200e780
commit
3ed6a052fd
1 changed files with 4 additions and 4 deletions
|
@ -139,11 +139,11 @@ def __virtual__():
|
|||
if HAS_SSL and OpenSSL_version >= LooseVersion('0.10'):
|
||||
if OpenSSL_version < LooseVersion('0.14'):
|
||||
X509_EXT_ENABLED = False
|
||||
log.error('You should upgrade pyOpenSSL to at least 0.14.1 '
|
||||
'to enable the use of X509 extensions')
|
||||
log.debug('You should upgrade pyOpenSSL to at least 0.14.1 to '
|
||||
'enable the use of X509 extensions in the tls module')
|
||||
elif OpenSSL_version <= LooseVersion('0.15'):
|
||||
log.warn('You should upgrade pyOpenSSL to at least 0.15.1 '
|
||||
'to enable the full use of X509 extensions')
|
||||
log.debug('You should upgrade pyOpenSSL to at least 0.15.1 to '
|
||||
'enable the full use of X509 extensions in the tls module')
|
||||
# NOTE: Not having configured a cert path should not prevent this
|
||||
# module from loading as it provides methods to configure the path.
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue