From 19bd1bc2bcaf461d154823224434118c80ef9761 Mon Sep 17 00:00:00 2001 From: yuemian <--list> Date: Wed, 4 Sep 2024 15:09:50 +0800 Subject: [PATCH] log --- .../ctstack/plugin/provider/compute/TianyiPhysicalProvider.java | 1 + .../bocloud/ctstack/plugin/service/impl/TianyiTransporter.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/compute/TianyiPhysicalProvider.java b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/compute/TianyiPhysicalProvider.java index 52004a04..333787f4 100644 --- a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/compute/TianyiPhysicalProvider.java +++ b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/compute/TianyiPhysicalProvider.java @@ -56,6 +56,7 @@ public class TianyiPhysicalProvider extends TianyiProvider { physicalModels.add(physcicalConvertor.convertModel(model)); } } + log.info("results:" + JSON.toJSONString(physicalModels)); return new GeneralResult(true, physicalModels, "查询物理机列表成功"); } catch (Exception e) { log.error("查询物理机列表失败 :", e); diff --git a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/TianyiTransporter.java b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/TianyiTransporter.java index 02dc5680..10c882e8 100644 --- a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/TianyiTransporter.java +++ b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/service/impl/TianyiTransporter.java @@ -424,7 +424,6 @@ public class TianyiTransporter { private void syncPhysicalServer(List physicalServerModels, Long vendorId, Long userId) { if (ListTool.isEmpty(physicalServerModels)) { - List servers = physicalServerRepository.listByVendor(vendorId); physicalServerRepository.removeByVendor(vendorId, userId); return; }