Skip to content

Commit 23d84d0

Browse files
wshengqibadboy-huaqiao
authored andcommitted
modify rule engine health check
Signed-off-by: wshengqi <wshengqi@vmware.com>
1 parent 1c8f18d commit 23d84d0

File tree

1 file changed

+2
-2
lines changed
  • cmd/edgex-ui-server/static/js

1 file changed

+2
-2
lines changed

cmd/edgex-ui-server/static/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ $(document).ready(function () {
196196
$.ajax({
197197
url: '/rule-engine',
198198
type: 'GET',
199-
success: function (data) {
200-
if (data.trim() == "OK") {
199+
success: function (data,status,xhr) {
200+
if (status == "success" && xhr.status == 200) {
201201
renderByCheckResult(thisTab, "healthy");
202202
} else {
203203
renderByCheckResult(thisTab, "unhealthy");

0 commit comments

Comments
 (0)