Commit f9073120 authored by 段英荣's avatar 段英荣

modify

parent 9a7700ae
......@@ -22,6 +22,9 @@ class ESPerform(object):
def get_cli(cls,es_ip_list=None):
try:
es_info_list = es_ip_list if es_ip_list else cls.cli_info_list
if es_ip_list:#tricky的做法,兼容测试es
cls.index_prefix = "gm_test"
cls.cli_obj = Elasticsearch(es_info_list)
return cls.cli_obj
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment