aio-libs / aio-libs/aioelasticsearch

AIOHttpConnection init raises AttributeError on use_ssl with Elasticsearch>2.0.0

オープン
#196 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
137
フォーク
39
PR マージ指標
30日以内にマージされた PR はありません

説明

```
aioelasticsearch==0.5.2
elasticsearch==2.4.1
```

`AIOHttpConnection` takes `use_ssl` argument and passes one to the parent's `__init__`.

Then `self.use_ssl` gets used instead of `use_ssl` here
https://github.com/aio-libs/aioelasticsearch/blob/master/aioelasticsearch/connection.py#L52

It works for the latest `elasticsearch-py` versions, however, it doesn't work with `>2.0.0`, b/c there's no `self.use_ssl = use_ssl` there.

The fix is straightforward - use `use_ssl` directly instead of `self.use_ssl`.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。