log
parent
6b8fbe3527
commit
19bd1bc2bc
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue