fix(系统管理): 资源池更新校验区分类型
This commit is contained in:
parent
7e5f72ad56
commit
7450a45384
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue