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