You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by qu...@apache.org on 2017/10/06 19:34:49 UTC
[3/4] libcloud git commit: Improve CA_CERTS_PATH defined as list
warning
Improve CA_CERTS_PATH defined as list warning
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/fa074d17
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/fa074d17
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/fa074d17
Branch: refs/heads/trunk
Commit: fa074d1737d9c60bf1bce5a239217336583dd385
Parents: 8eab5d2
Author: Quentin Pradet <qu...@apache.org>
Authored: Mon Oct 2 08:36:22 2017 +0400
Committer: Quentin Pradet <qu...@apache.org>
Committed: Fri Oct 6 23:28:20 2017 +0400
----------------------------------------------------------------------
libcloud/http.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/fa074d17/libcloud/http.py
----------------------------------------------------------------------
diff --git a/libcloud/http.py b/libcloud/http.py
index 567a2a2..b855b42 100644
--- a/libcloud/http.py
+++ b/libcloud/http.py
@@ -150,7 +150,13 @@ class LibcloudBaseConnection(object):
else:
if isinstance(libcloud.security.CA_CERTS_PATH, list):
if len(libcloud.security.CA_CERTS_PATH) > 1:
- warnings.warn('Only 1 certificate path is supported')
+ msg = ('Providing a list of CA trusts is no longer '
+ 'supported since libcloud 2.0. Using the first '
+ 'element in the list. See '
+ 'http://libcloud.readthedocs.io/en/latest/other/'
+ 'changes_in_2_0.html#providing-a-list-of-ca-trusts-'
+ 'is-no-longer-supported')
+ warnings.warn(msg)
self.ca_cert = libcloud.security.CA_CERTS_PATH[0]
else:
self.ca_cert = libcloud.security.CA_CERTS_PATH