瀏覽代碼

Update docker.py

qiaofeng1227 2 年之前
父節點
當前提交
0b2674f98f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      appmanage/api/utils/docker.py

+ 1 - 1
appmanage/api/utils/docker.py

@@ -18,7 +18,7 @@ def get_process_perc(app_name):
     http_port = read_env(path, "APP_HTTP_PORT")
     output = shell_execute.execute_command_output_all("curl localhost:" + http_port)
     code = output["code"]
-    if int(code) == 0 and output["result"].find("Failed connect")!= -1:
+    if int(code) == 0 and output["result"].find("Failed") != -1:
         process_now = "running"