From 61e925ada5469fa36970b89c5e5d32d97994b991 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Sat, 26 Aug 2023 18:24:53 +0800 Subject: [PATCH] Update hostname.py --- appmanage/hostname.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmanage/hostname.py b/appmanage/hostname.py index 31d69623..8a005a0e 100644 --- a/appmanage/hostname.py +++ b/appmanage/hostname.py @@ -1,5 +1,5 @@ -from websoft9.appmanage.api.utils.log import myLogger +from api.utils.log import myLogger from api.utils import shell_execute shell_execute.execute_command_output_all("sed -i '/websoft9-appmanage/d' /etc/hosts") -shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts") \ No newline at end of file +shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts")