Json
Some checks failed
gl/check check status: failure (2aa0175b6ef164af8cb8e4cdf8e2ee65817378e0)

This commit is contained in:
SebastianGode 2023-06-13 10:34:36 +02:00
parent 90b841ddcc
commit 2aa0175b6e

View File

@ -2,6 +2,7 @@ import otc_metadata
import argparse
import logging
from opensearchpy import OpenSearch
import json
metadata = otc_metadata.Services()
@ -116,7 +117,7 @@ def generate_os_host_list(hosts):
def create_index(client, index, data):
return client.indices.create(index, body=data)
return client.indices.create(index, body=json.dumps(data))
def delete_index(client, index):