From 7c50a78a8dbe4336a05b45fc34609ab625e7ccec Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 22 Feb 2024 18:21:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90=E6=B1=A0=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=86=8D=E6=88=90=E5=8A=9F=E5=90=8E=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E7=A6=81=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/TestResourcePoolService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/TestResourcePoolService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/TestResourcePoolService.java index e4264168cf..dc1f22da73 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/TestResourcePoolService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/TestResourcePoolService.java @@ -83,9 +83,7 @@ public class TestResourcePoolService { return true; } boolean validate = checkNodeOrK8s(testResourceDTO, type, false); - if (!validate) { - testResourcePool.setEnable(false); - } + testResourcePool.setEnable(validate); return validate; } @@ -122,9 +120,7 @@ public class TestResourcePoolService { return true; } boolean validate = checkNodeOrK8s(testResourceDTO, type, true); - if (!validate) { - testResourcePool.setEnable(false); - } + testResourcePool.setEnable(validate); return validate; }