From 68153ce4ee57306c0a904e761581145e36d4618e Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 20 Jun 2018 17:13:40 +0900 Subject: [PATCH] ing --- .../central/module/infra/service/CentralInfraService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 119192a..ad47647 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();