From 3976b99741c3ee5b3beb22810e0566935bb15c90 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 16 May 2023 17:04:16 +0800 Subject: [PATCH] domain --- appmanage/Dockerfile | 2 +- appmanage/api/service/manage.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index ef28a3a5..d6cf741e 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -10,7 +10,7 @@ COPY static ./static COPY requirements.txt main.py ./ RUN apt update -# Install supervisord +# Install supervisords RUN apt install -y supervisor COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY config/cmd.sh /cmd.sh diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 7b0baecd..5aaeba57 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -802,7 +802,8 @@ def app_domain_add(app_id, domain): } response = requests.post(url, data=json.dumps(data), headers=headers) - myLogger.info_logger(response) + myLogger.info_logger(response.json()) + myLogger.info_logger(response.json().get("error")) #if response.json()["error"]: # myLogger.info_logger(response.json()) # raise CommandException(const.ERROR_API_NGINX, response.json()["error"]["message"], "")