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; }