From 3da66744c24fd24e69aebb0e6a0e3a0d16135a30 Mon Sep 17 00:00:00 2001 From: bayuzhen Date: Wed, 6 Nov 2024 17:00:42 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix=20=E4=BF=AE=E6=94=B9=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E8=BF=90=E7=BB=B4=E8=B5=84=E6=BA=90=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=97=A0=E4=B8=BB=E6=9C=BA=E4=BF=A1=E6=81=AF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e63fef0ba67c9d39e46e8549228cd247d2a8f084. --- .../src/main/java/com/bocloud/cop/enums/TaskHostType.java | 2 +- .../java/com/bocloud/cop/service/TaskHostServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 3e53797..87ff151 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, CMP; + IMS, IMPORT, CREATE,SALT; } 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 c50c898..0d0e207 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.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)); // 同步获取的平台