fix(系统设置): 修复资源池校验失败再成功后还是禁用问题
This commit is contained in:
parent
f282b236ea
commit
7c50a78a8d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue