diff --git a/src/main/java/com/loafle/overflow/central/module/infra/service/CentralInfraService.java b/src/main/java/com/loafle/overflow/central/module/infra/service/CentralInfraService.java index 7b9536e..900a45f 100644 --- a/src/main/java/com/loafle/overflow/central/module/infra/service/CentralInfraService.java +++ b/src/main/java/com/loafle/overflow/central/module/infra/service/CentralInfraService.java @@ -153,8 +153,7 @@ public class CentralInfraService implements InfraService { InfraHostIP eInfraHostIP = this.infraHostIPService.readByInfraHostInfraZoneIDAndMetaIPTypeKeyAndAddress( infraZone.getId(), infraHostIP.getMetaIPType().getKey(), host.getAddress()); if (null != eInfraHostIP) { - throw new OverflowException(String.format("IP[%s(%s)] of Zone[%s] is exist already", host.getAddress(), - infraHostIP.getMetaIPType().getName(), infraZone.getNetwork())); + return eInfraHostIP.getInfraHost(); } InfraHost infraHost = new InfraHost();