From be79cef60ea62df76712e7de81a705f0c9677143 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Sun, 16 Apr 2023 20:23:25 +0800 Subject: [PATCH] Update manage.py --- appmanage/api/service/manage.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index d5c91e46..0355e987 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -142,9 +142,11 @@ def delete_app_failedjob(app_id): def uninstall_app(app_id): code, message = docker.check_appid_include_rq(app_id) if code == None: - app_name = split_app_id(app_id) + app_name = app_id.split('_')[0] info, code_exist = app_exits_in_docker(app_id) - if code_exist: + myLogger.info_logger("code_exist") + myLogger.info_logger(code_exist) + if code_exist: app_path = info.split()[-1].rsplit('/', 1)[0] cmd = "docker compose -f " + app_path + "/docker-compose.yml down -v" lib_path = '/data/library/apps/' + app_name @@ -155,7 +157,6 @@ def uninstall_app(app_id): delete_app_failedjob(app_id) else: raise CommandException(code, message, "") - return ret def check_app(app_name, customer_name, app_version): message = ""