develop
yuemian 2024-09-04 15:09:50 +08:00
parent 6b8fbe3527
commit 19bd1bc2bc
2 changed files with 1 additions and 1 deletions

View File

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

View File

@ -424,7 +424,6 @@ public class TianyiTransporter {
private void syncPhysicalServer(List<PhysicalServerModel> physicalServerModels, Long vendorId, Long userId) {
if (ListTool.isEmpty(physicalServerModels)) {
List<PhysicalServer> servers = physicalServerRepository.listByVendor(vendorId);
physicalServerRepository.removeByVendor(vendorId, userId);
return;
}