Revert "fix 修改自动化运维资源同步无主机信息"

This reverts commit e63fef0ba6.
develop^2
bayuzhen 2024-11-06 17:00:42 +08:00
parent e63fef0ba6
commit 3da66744c2
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ public class TaskHostType {
// IMPORT 批量导入
// CREATE 手动创建
// Salt 同步
IMS, IMPORT, CREATE,SALT, CMP;
IMS, IMPORT, CREATE,SALT;
}
public static enum UpdateModel {

View File

@ -584,9 +584,9 @@ public class TaskHostServiceImpl implements TaskHostService {
// 原有平台
List<TaskHost> oldVendorList;
if (StringUtils.isBlank(category) || TaskHostType.Category.ALL.name().equalsIgnoreCase(category)) {
oldVendorList = taskHostRepository.listVendorId(TaskHostType.SourceType.CMP.name());
oldVendorList = taskHostRepository.listVendorId(TaskHostType.SourceType.IMS.name());
} else {
oldVendorList = taskHostRepository.listVendorId(category, TaskHostType.SourceType.CMP.name());
oldVendorList = taskHostRepository.listVendorId(category, TaskHostType.SourceType.IMS.name());
}
log.info("自动化运维获取ims云平台" + JSONObject.toJSONString(oldVendorList));
// 同步获取的平台