mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update manage.py
This commit is contained in:
parent
6b1a32189b
commit
189b367855
@ -239,6 +239,7 @@ def app_exits_in_docker(app_id):
|
||||
flag = False
|
||||
info = ""
|
||||
cmd = "docker compose ls -a | grep \'/" + app_name + "/\'"
|
||||
try:
|
||||
output = shell_execute.execute_command_output_all(cmd)
|
||||
if int(output["code"]) == 0:
|
||||
info = output["result"]
|
||||
@ -250,7 +251,10 @@ def app_exits_in_docker(app_id):
|
||||
flag = True
|
||||
elif app_name == customer_name:
|
||||
flag = True
|
||||
myLogger.info_logger("APP info: " + info)
|
||||
myLogger.info_logger("APP in docker")
|
||||
except CommandException as ce:
|
||||
myLogger.info_logger("APP not in docker")
|
||||
|
||||
return info, flag
|
||||
|
||||
def split_app_id(app_id):
|
||||
|
Loading…
Reference in New Issue
Block a user