Skip to content

Commit d1ba77e

Browse files
Update elasticsearch_helpers.py
1 parent 3aa1e5f commit d1ba77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/django_elasticsearch_dsl_drf/elasticsearch_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_all_indices(with_protected=False):
1515
list: List of indices.
1616
"""
1717
es = Elasticsearch(**settings.ELASTICSEARCH_DSL["default"])
18-
_indices = es.indices.get_alias(index="*").items()
18+
_indices = es.indices.get_alias("*").items()
1919
if with_protected:
2020
return [_i for _i, _o in _indices]
2121
else:
@@ -35,7 +35,7 @@ def delete_all_indices(with_protected=False):
3535
_fail = []
3636
for _i in _indices:
3737
try:
38-
_res = es.indices.delete(index=_i)
38+
_res = es.indices.delete(_i)
3939
except Exception as err:
4040
_fail.append(_i)
4141
if _res and isinstance(_res, dict) and _res.get("acknowledged", False):

0 commit comments

Comments
 (0)