File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,9 @@ def project_docs(db):
390
390
index = "warehouse-cbcbcbcbcb" ,
391
391
)
392
392
]
393
- assert es_client .indices .delete .calls == [pretend .call ("warehouse-aaaaaaaaaa" )]
393
+ assert es_client .indices .delete .calls == [
394
+ pretend .call (index = "warehouse-aaaaaaaaaa" )
395
+ ]
394
396
assert es_client .indices .aliases == {"warehouse" : ["warehouse-cbcbcbcbcb" ]}
395
397
assert es_client .indices .put_settings .calls == [
396
398
pretend .call (
Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ def reindex(self, request):
196
196
actions .append ({"remove" : {"index" : name , "alias" : index_base }})
197
197
actions .append ({"add" : {"index" : new_index_name , "alias" : index_base }})
198
198
client .indices .update_aliases (body = {"actions" : actions })
199
- client .indices .delete ("," .join (to_delete ))
199
+ for index_to_delete in to_delete :
200
+ client .indices .delete (index = index_to_delete )
200
201
else :
201
202
client .indices .put_alias (name = index_base , index = new_index_name )
202
203
except redis .exceptions .LockError as exc :
You can’t perform that action at this time.
0 commit comments