change input parameter order when call publish_json
in mongo_to_elasticsearch.py
JIRA: FUNCTEST-318
Change-Id: I2ff35b069a7b02356083d52ea864e57f6820b4ce
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
for mongo_json_line in fobj:
test_result = json.loads(mongo_json_line)
if modify_mongo_entry(test_result):
for mongo_json_line in fobj:
test_result = json.loads(mongo_json_line)
if modify_mongo_entry(test_result):
- shared_utils.publish_json(test_result, output_destination, es_user, es_passwd)
+ shared_utils.publish_json(test_result, es_user, es_passwd, output_destination)
finally:
if os.path.exists(tmp_filename):
os.remove(tmp_filename)
finally:
if os.path.exists(tmp_filename):
os.remove(tmp_filename)