dashboard log info check 29/25429/1
authorliyin <liyin11@huawei.com>
Fri, 2 Dec 2016 14:52:55 +0000 (22:52 +0800)
committerliyin <liyin11@huawei.com>
Fri, 2 Dec 2016 14:52:55 +0000 (22:52 +0800)
JIRA: BOTTLENECK-115

This patch change an error that last patch haven't covered.
so i need to correct it.

Change-Id: I1ab1fbe4e60463482728ec3ab58ec71c4e1d7049
Signed-off-by: liyin <liyin11@huawei.com>
testsuites/posca/testcase_dashboard/system_bandwidth.py

index 69020c0..92dc0b5 100755 (executable)
@@ -42,7 +42,12 @@ doc={
     "defaultIndex": "bottlenecks"
 }
 res = es.index(index=".kibana",doc_type="config",id="4.6.1",body=doc)
-print(res['created'])
+
+if res['created']=="True":
+        print("bottlenecks config has created")
+else:
+        print("bottlenecks config has existed")
+
 doc={
 "title": "system_bandwidth",
     "description": "",