Improve CA_CERTS_PATH defined as list warning
@@ -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
