From ce19ba4abdfce19cdfbd3954b05d7b3a8da741cf Mon Sep 17 00:00:00 2001 From: Lingghh Date: Fri, 19 Aug 2022 16:25:29 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E8=B0=83=E6=95=B4=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/projects/main/apps/nodemgr/core/nodemgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/projects/main/apps/nodemgr/core/nodemgr.py b/server/projects/main/apps/nodemgr/core/nodemgr.py index dec70ca65..0d8175030 100644 --- a/server/projects/main/apps/nodemgr/core/nodemgr.py +++ b/server/projects/main/apps/nodemgr/core/nodemgr.py @@ -123,7 +123,7 @@ def create_new_node(cls, request, data): node = models.Node( name=data['uuid'], addr=ip, - enabled=models.Node.EnabledEnum.DISABLED, # 暂时不生效 + enabled=enabled, last_beat_time=now(), uuid=data['uuid'], manager=request.user,