Authored by qinchao

保留127.0.0.1在cmdb

... ... @@ -360,7 +360,10 @@ public class HostInfoServiceImpl implements IHostInfoService {
for(String ip : dbHosts){
if( !cloudHosts.contains(ip)){
oldIpList.add(ip);
//保留127.0.0.1的ip,用作standalone类型的redis tw
if(!"127.0.0.1".equals(ip)){
oldIpList.add(ip);
}
}
}
... ...
... ... @@ -39,7 +39,8 @@ public class UpdateHostTimeTask {
List<String> mobjectHostIps = mObjectInfoMapper.selectAllMobjectIps();
List<String> deleteHostIpList = new ArrayList<>();
for( String ip : mobjectHostIps){
if( !allHostIps.contains(ip) ){
//保留127.0.0.1 用作stand alone redis的tw
if( !allHostIps.contains(ip) && !"127.0.0.1".equals(ip)){
deleteHostIpList.add(ip);
}
}
... ...