From 2110cc845de2d5636c8f3b59ef3244c7cad0282b Mon Sep 17 00:00:00 2001 From: yuemian <--list> Date: Tue, 3 Sep 2024 11:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E7=90=86=E6=9C=BA=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ctstack/plugin/provider/common/TianyiFlavorProvider.java | 3 ++- .../bocloud/ctstack/plugin/service/impl/FlavorServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/common/TianyiFlavorProvider.java b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/common/TianyiFlavorProvider.java index 9d743587..df2f216e 100644 --- a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/common/TianyiFlavorProvider.java +++ b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/common/TianyiFlavorProvider.java @@ -76,7 +76,7 @@ public class TianyiFlavorProvider extends TianyiServerProvider { } } - public GeneralResult listPhysical(String regionId, String azName) { + public GeneralResult listFlavorPhysical(String regionId, String azName) { try { String apiUrl = "/v4/ebm/device-type-list"; JSONObject body = new JSONObject(); @@ -96,4 +96,5 @@ public class TianyiFlavorProvider extends TianyiServerProvider { return new GeneralResult(false, "查询物理机规格列表失败", e.getMessage()); } } + } diff --git a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/FlavorServiceImpl.java b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/FlavorServiceImpl.java index 82f439e2..b395d510 100644 --- a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/FlavorServiceImpl.java +++ b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/FlavorServiceImpl.java @@ -165,7 +165,7 @@ public class FlavorServiceImpl implements FlavorService { return GeneralResult.FAILED("云平台不存在"); } TianyiFlavorProvider flavorProvider = new TianyiFlavorProvider(butlerConfig.regionButler(vendor.getUuid(), regionId)); - return flavorProvider.listPhysical(regionId, zoneId); + return flavorProvider.listFlavorPhysical(regionId, zoneId); } catch (Exception e) { log.error("查询物理机规格失败"+ e.getMessage(), e); return GeneralResult.FAILED("查询物理机规格失败"+ e.getMessage());