diff --git a/bocloud.cop.entity/src/main/java/com/bocloud/cop/enums/TaskHostType.java b/bocloud.cop.entity/src/main/java/com/bocloud/cop/enums/TaskHostType.java index 87ff151..3e53797 100644 --- a/bocloud.cop.entity/src/main/java/com/bocloud/cop/enums/TaskHostType.java +++ b/bocloud.cop.entity/src/main/java/com/bocloud/cop/enums/TaskHostType.java @@ -7,7 +7,7 @@ public class TaskHostType { // IMPORT 批量导入 // CREATE 手动创建 // Salt 同步 - IMS, IMPORT, CREATE,SALT; + IMS, IMPORT, CREATE,SALT, CMP; } public static enum UpdateModel { diff --git a/bocloud.cop.service/src/main/java/com/bocloud/cop/service/TaskHostServiceImpl.java b/bocloud.cop.service/src/main/java/com/bocloud/cop/service/TaskHostServiceImpl.java index 0d0e207..c50c898 100644 --- a/bocloud.cop.service/src/main/java/com/bocloud/cop/service/TaskHostServiceImpl.java +++ b/bocloud.cop.service/src/main/java/com/bocloud/cop/service/TaskHostServiceImpl.java @@ -584,9 +584,9 @@ public class TaskHostServiceImpl implements TaskHostService { // 原有平台 List oldVendorList; if (StringUtils.isBlank(category) || TaskHostType.Category.ALL.name().equalsIgnoreCase(category)) { - oldVendorList = taskHostRepository.listVendorId(TaskHostType.SourceType.IMS.name()); + oldVendorList = taskHostRepository.listVendorId(TaskHostType.SourceType.CMP.name()); } else { - oldVendorList = taskHostRepository.listVendorId(category, TaskHostType.SourceType.IMS.name()); + oldVendorList = taskHostRepository.listVendorId(category, TaskHostType.SourceType.CMP.name()); } log.info("自动化运维获取ims云平台:" + JSONObject.toJSONString(oldVendorList)); // 同步获取的平台