fix(系统管理): 资源池更新校验区分类型

This commit is contained in:
guoyuqi 2024-10-14 14:06:27 +08:00 committed by Craftsman
parent 7e5f72ad56
commit 7450a45384
1 changed files with 5 additions and 3 deletions

View File

@ -111,10 +111,12 @@ public class TestResourcePoolService {
if (CollectionUtils.isEmpty(testResourceDTO.getNodesList())) {
testResourceDTO.setNodesList(new ArrayList<>());
}
if (StringUtils.equalsIgnoreCase(testResourcePool.getType(), ResourcePoolTypeEnum.NODE.name())){
TestResourcePoolValidateService testResourcePoolValidateService = CommonBeanFactory.getBean(TestResourcePoolValidateService.class);
if (testResourcePoolValidateService != null) {
testResourcePoolValidateService.validateNodeList(testResourceDTO.getNodesList());
}
}
String configuration = JSON.toJSONString(testResourceDTO);
TestResourcePoolBlob testResourcePoolBlob = new TestResourcePoolBlob();
testResourcePoolBlob.setId(testResourcePool.getId());