summaryrefslogtreecommitdiffstats
path: root/utils/test/scripts
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-17 10:49:57 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-17 10:55:47 +0800
commit643ba463e51a2cd689228a6c12c69c95ca757712 (patch)
treeef5ff7feb844ff7837947ae6172c8df6cb5b250b /utils/test/scripts
parentad1e7d2a89db7a0b2f29208850f12eca644a9902 (diff)
bugfix: wrong function call of publish_json in kibana scripts
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>
Diffstat (limited to 'utils/test/scripts')
-rw-r--r--utils/test/scripts/mongo_to_elasticsearch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/test/scripts/mongo_to_elasticsearch.py b/utils/test/scripts/mongo_to_elasticsearch.py
index 51b6913f7..53732579a 100644
--- a/utils/test/scripts/mongo_to_elasticsearch.py
+++ b/utils/test/scripts/mongo_to_elasticsearch.py
@@ -360,7 +360,7 @@ def publish_mongo_data(output_destination):
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)