mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Eliminate warning when 'ssl' not set (#37849)
When not specifying 'ssl' in a config file, the following warning is displayed: `[WARNING ] Key 'ssl' with value None has an invalid type of NoneType, a dict is required for this value` This has been caused by PR #37776. Fix this by allowing `None` as a valid value for `ssl`. Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
This commit is contained in:
parent
0c607ccaec
commit
16ce844c54
1 changed files with 1 additions and 1 deletions
|
@ -921,7 +921,7 @@ VALID_OPTS = {
|
|||
# http://docs.python.org/2/library/ssl.html#ssl.wrap_socket
|
||||
# Note: to set enum arguments values like `cert_reqs` and `ssl_version` use constant names
|
||||
# without ssl module prefix: `CERT_REQUIRED` or `PROTOCOL_SSLv23`.
|
||||
'ssl': dict,
|
||||
'ssl': (dict, type(None)),
|
||||
}
|
||||
|
||||
# default configurations
|
||||
|
|
Loading…
Add table
Reference in a new issue