bug fix
This commit is contained in:
parent
3b36c6ade2
commit
31a0b35d35
|
@ -9,6 +9,6 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface InfraHostDAO extends JpaRepository<InfraHost, Long> {
|
||||
InfraHost findByIp(String ip);
|
||||
InfraHost findByIpv4(String ipv4);
|
||||
|
||||
}
|
|
@ -25,6 +25,6 @@ public class CentralInfraHostService implements InfraHostService {
|
|||
}
|
||||
|
||||
public InfraHost readByIp(String ip) throws OverflowException {
|
||||
return this.infraHostDAO.findByIp(ip);
|
||||
return this.infraHostDAO.findByIpv4(ip);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user