moving import

This commit is contained in:
Nick Lang
2017-12-28 13:12:04 -07:00
parent 456e598c5b
commit 50f89e4d47
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ Elastic Cloud (and SSL) use-case::
Using SSL Context with a self-signed cert use-case::
>>> from elasticsearch import Elasticsearch
>>> from elasticsearch.connection.http_urllib3 import create_ssl_context
>>> from elasticsearch.connection import create_ssl_context
>>> context = create_ssl_context(cafile="path/to/cafile.pem")
>>> es = Elasticsearch("https://elasticsearch.url:port", ssl_context=context, http_auth=('elastic','yourpassword'))