fix(系统管理): 资源池更新校验区分类型
This commit is contained in:
parent
7e5f72ad56
commit
7450a45384
|
@ -111,9 +111,11 @@ public class TestResourcePoolService {
|
||||||
if (CollectionUtils.isEmpty(testResourceDTO.getNodesList())) {
|
if (CollectionUtils.isEmpty(testResourceDTO.getNodesList())) {
|
||||||
testResourceDTO.setNodesList(new ArrayList<>());
|
testResourceDTO.setNodesList(new ArrayList<>());
|
||||||
}
|
}
|
||||||
TestResourcePoolValidateService testResourcePoolValidateService = CommonBeanFactory.getBean(TestResourcePoolValidateService.class);
|
if (StringUtils.equalsIgnoreCase(testResourcePool.getType(), ResourcePoolTypeEnum.NODE.name())){
|
||||||
if (testResourcePoolValidateService != null) {
|
TestResourcePoolValidateService testResourcePoolValidateService = CommonBeanFactory.getBean(TestResourcePoolValidateService.class);
|
||||||
testResourcePoolValidateService.validateNodeList(testResourceDTO.getNodesList());
|
if (testResourcePoolValidateService != null) {
|
||||||
|
testResourcePoolValidateService.validateNodeList(testResourceDTO.getNodesList());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String configuration = JSON.toJSONString(testResourceDTO);
|
String configuration = JSON.toJSONString(testResourceDTO);
|
||||||
TestResourcePoolBlob testResourcePoolBlob = new TestResourcePoolBlob();
|
TestResourcePoolBlob testResourcePoolBlob = new TestResourcePoolBlob();
|
||||||
|
|
Loading…
Reference in New Issue