fix(系统设置): 去除资源池配置镜像时两边的空格

--bug=1034575 --user=刘瑞斌 【系统设置】github#27977,资源池的jmeter镜像,值未去两边空格,导致镜像存在,但执行异常 https://www.tapd.cn/55049933/s/1463221
This commit is contained in:
CaptainB 2024-02-21 11:10:41 +08:00 committed by 刘瑞斌
parent 29ae426d6d
commit 746e76ed48
1 changed files with 4 additions and 1 deletions

View File

@ -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) {