fix(系统设置): 修复资源池校验失败再成功后还是禁用问题

This commit is contained in:
guoyuqi 2024-02-22 18:21:09 +08:00 committed by 刘瑞斌
parent f282b236ea
commit 7c50a78a8d
1 changed files with 2 additions and 6 deletions

View File

@ -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;
}