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());