mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix: change tuples to list for key+cert pairs (https).
This commit is contained in:
parent
19dcace679
commit
e8d8d9211b
@ -297,7 +297,7 @@ def query(url,
|
||||
if isinstance(cert, six.string_types):
|
||||
if os.path.exists(cert):
|
||||
req_kwargs['cert'] = cert
|
||||
elif isinstance(cert, tuple):
|
||||
elif isinstance(cert, list):
|
||||
if os.path.exists(cert[0]) and os.path.exists(cert[1]):
|
||||
req_kwargs['cert'] = cert
|
||||
else:
|
||||
@ -375,7 +375,7 @@ def query(url,
|
||||
if isinstance(cert, six.string_types):
|
||||
if os.path.exists(cert):
|
||||
cert_chain = (cert)
|
||||
elif isinstance(cert, tuple):
|
||||
elif isinstance(cert, list):
|
||||
if os.path.exists(cert[0]) and os.path.exists(cert[1]):
|
||||
cert_chain = cert
|
||||
else:
|
||||
@ -424,7 +424,7 @@ def query(url,
|
||||
if isinstance(cert, six.string_types):
|
||||
if os.path.exists(cert):
|
||||
req_kwargs['client_cert'] = cert
|
||||
elif isinstance(cert, tuple):
|
||||
elif isinstance(cert, list):
|
||||
if os.path.exists(cert[0]) and os.path.exists(cert[1]):
|
||||
req_kwargs['client_cert'] = cert[0]
|
||||
req_kwargs['client_key'] = cert[1]
|
||||
|
Loading…
Reference in New Issue
Block a user