Index Tool for Search #107
@ -117,11 +117,11 @@ def generate_os_host_list(hosts):
|
||||
|
||||
|
||||
def create_index(client, index, data):
|
||||
return client.indices.create(index, body=json.dumps(data))
|
||||
return client.indices.create(index=index, body=data)
|
||||
|
||||
|
||||
def delete_index(client, index):
|
||||
return client.indices.delete(index=index, ignore=[400, 404])
|
||||
|
||||
|
||||
main()
|
||||
main()
|
||||
|
Reference in New Issue
Block a user