Skip to content

Commit

Permalink
Fix type and comment of verify parameter (#238)
Browse files Browse the repository at this point in the history
So that it's clear that people can pass the path to a CA bundle.
  • Loading branch information
FabianFrank authored and jeffwecan committed Aug 1, 2018
1 parent 09e907b commit 639cbbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions hvac/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ def __init__(self, base_uri=DEFAULT_BASE_URI, token=None, cert=None, verify=True
:param cert: Certificates for use in requests sent to the Vault instance. This should be a tuple with the
certificate and then key.
:type cert: tuple
:param verify: Flag to indicate whether TLS verification should be performed when sending requests to Vault.
:type verify: bool
:param verify: Either a boolean to indicate whether TLS verification should be performed when sending requests to Vault,
or a string pointing at the CA bundle to use for verification. See http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification.
:type verify: Union[bool,str]
:param timeout: The timeout value for requests sent to Vault.
:type timeout: int
:param proxies: Proxies to use when preforming requests.
Expand Down
5 changes: 3 additions & 2 deletions hvac/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def __init__(self, url='http://localhost:8200', token=None,
:param cert: Certificates for use in requests sent to the Vault instance. This should be a tuple with the
certificate and then key.
:type cert: tuple
:param verify: Flag to indicate whether TLS verification should be performed when sending requests to Vault.
:type verify: bool
:param verify: Either a boolean to indicate whether TLS verification should be performed when sending requests to Vault,
or a string pointing at the CA bundle to use for verification. See http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification.
:type verify: Union[bool,str]
:param timeout: The timeout value for requests sent to Vault.
:type timeout: int
:param proxies: Proxies to use when preforming requests.
Expand Down

0 comments on commit 639cbbd

Please sign in to comment.