diff options
| author | Kieran Spear <kispear@gmail.com> | 2013-10-24 18:50:36 +1100 |
|---|---|---|
| committer | Kieran Spear <kispear@gmail.com> | 2013-10-24 19:00:35 +1100 |
| commit | e337ae3f639d506a40538d6540ca5cdc4da9db61 (patch) | |
| tree | 097d340df6c648510dbb0d3272f8a006c4e1cefd /ceilometerclient/common/http.py | |
| parent | 1d597e12e7aa0a653d2ffae0a96788ebfbdab59a (diff) | |
| download | python-ceilometerclient-e337ae3f639d506a40538d6540ca5cdc4da9db61.tar.gz | |
Fix cacert argument to HTTPS connection
This fixes a typo that broke the client for HTTPS URLs.
Added a basic test to cover this case.
Coverage is very low in common/http.py.
Change-Id: Ic440f20f463c3b8558a7639f1015096a01496cf8
Closes-bug: 1244091
Diffstat (limited to 'ceilometerclient/common/http.py')
| -rw-r--r-- | ceilometerclient/common/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometerclient/common/http.py b/ceilometerclient/common/http.py index dd86740..1a4b58c 100644 --- a/ceilometerclient/common/http.py +++ b/ceilometerclient/common/http.py @@ -59,7 +59,7 @@ class HTTPClient(object): if parts.scheme == 'https': _class = VerifiedHTTPSConnection - _kwargs['ca_cert'] = kwargs.get('cacert', None) + _kwargs['cacert'] = kwargs.get('cacert', None) _kwargs['cert_file'] = kwargs.get('cert_file', None) _kwargs['key_file'] = kwargs.get('key_file', None) _kwargs['insecure'] = kwargs.get('insecure', False) |
