fix(系统设置): 去除资源池配置镜像时两边的空格
--bug=1034575 --user=刘瑞斌 【系统设置】github#27977,资源池的jmeter镜像,值未去两边空格,导致镜像存在,但执行异常 https://www.tapd.cn/55049933/s/1463221
This commit is contained in:
parent
29ae426d6d
commit
746e76ed48
|
@ -94,7 +94,10 @@ public class TestResourcePoolService {
|
|||
if (testResourcePoolMapper.countByExample(example) > 0) {
|
||||
MSException.throwException(Translator.get("test_resource_pool_name_already_exists"));
|
||||
}
|
||||
|
||||
// 去除镜像前后空格
|
||||
if (StringUtils.isNotBlank(testResourcePoolDTO.getImage())) {
|
||||
testResourcePoolDTO.setImage(testResourcePoolDTO.getImage().trim());
|
||||
}
|
||||
}
|
||||
|
||||
public void updateTestResourcePoolStatus(String poolId, String status) {
|
||||
|
|
Loading…
Reference in New Issue