finish index tool for document overview
Some checks failed
gl/check check status: failure (f2e01cf1ca558ae8a19e55b014aea6c67ba23af5)
Some checks failed
gl/check check status: failure (f2e01cf1ca558ae8a19e55b014aea6c67ba23af5)
This commit is contained in:
parent
239f7c24e3
commit
f2e01cf1ca
@ -117,7 +117,9 @@ def generate_os_host_list(hosts):
|
|||||||
|
|
||||||
|
|
||||||
def create_index(client, index, data):
|
def create_index(client, index, data):
|
||||||
return client.indices.create(index=index, body=data)
|
client.indices.create(index=index)
|
||||||
|
return client.index(index=index, body=data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def delete_index(client, index):
|
def delete_index(client, index):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user