Browse Source

Update docker.py

qiaofeng1227 2 years ago
parent
commit
147dfdca8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      appmanage/api/utils/docker.py

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

@@ -160,7 +160,7 @@ def check_app_url(customer_app_name):
         ip = "localhost"
         ip = "localhost"
         try:
         try:
             ip_result = shell_execute.execute_command_output_all("cat /data/apps/stackhub/docker/w9appmanage/public_ip")
             ip_result = shell_execute.execute_command_output_all("cat /data/apps/stackhub/docker/w9appmanage/public_ip")
-            ip = ip_result["result"]
+            ip = ip_result["result"].rstrip('\n')
         except Exception:
         except Exception:
             ip = "127.0.0.1"
             ip = "127.0.0.1"
         http_port = list(read_env(path, "APP_HTTP_PORT").values())[0]
         http_port = list(read_env(path, "APP_HTTP_PORT").values())[0]