...
|
...
|
@@ -237,7 +237,7 @@ public class HostInfoServiceImpl implements IHostInfoService { |
|
|
if(null==hostInfo){
|
|
|
return new BaseResponse<Integer>();
|
|
|
}
|
|
|
|
|
|
logger.info(" delete host {} ",hostInfo);
|
|
|
List<MObjectInfo> list=null;
|
|
|
if(StringUtils.isNotBlank(hostInfo.getHostIp())){
|
|
|
list= mobjectInfoService.queryMObjectsInfoByHost(hostInfo.getHostIp());
|
...
|
...
|
@@ -337,6 +337,11 @@ public class HostInfoServiceImpl implements IHostInfoService { |
|
|
List<String> cloudHostIps = hosts.stream().filter(host -> StringUtils.isNotBlank(host.getIp()))
|
|
|
.map(host -> host.getIp()).collect(Collectors.toList());
|
|
|
|
|
|
if( hosts.size()!=cloudHostIps.size()){
|
|
|
logger.error("hostIps get from cloud , cloud ip exist null {} ,{} ",hosts ,cloudHostIps);
|
|
|
return "hostIps get from cloud , cloud ip exist null " + cloudType ;
|
|
|
}
|
|
|
|
|
|
List<String> dbHosts ;
|
|
|
try{
|
|
|
dbHosts = hostInfoMapper.selectHostIpByCloud(cloudType);
|
...
|
...
|
|