Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A707E200D5D for ; Wed, 20 Dec 2017 11:12:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A5D0E160C15; Wed, 20 Dec 2017 10:12:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E19EE160C0A for ; Wed, 20 Dec 2017 11:12:11 +0100 (CET) Received: (qmail 69779 invoked by uid 500); 20 Dec 2017 10:12:11 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 69770 invoked by uid 99); 20 Dec 2017 10:12:11 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2017 10:12:11 +0000 From: GitBox To: commits@cloudstack.apache.org Subject: [GitHub] rhtyd commented on a change in pull request #2370: CLOUDSTACK-9595: Fix regression introduced in #1762 Message-ID: <151376473050.8257.4252718810490984750.gitbox@gitbox.apache.org> archived-at: Wed, 20 Dec 2017 10:12:12 -0000 rhtyd commented on a change in pull request #2370: CLOUDSTACK-9595: Fix regression introduced in #1762 URL: https://github.com/apache/cloudstack/pull/2370#discussion_r157983244 ########## File path: server/src/com/cloud/network/IpAddressManagerImpl.java ########## @@ -936,8 +942,8 @@ public PublicIp assignDedicateIpAddress(Account owner, final Long guestNtwkId, f displayIp = vpc.isDisplay(); } - return fetchNewPublicIp(dcId, null, null, owner, VlanType.VirtualNetwork, guestNtwkId, isSourceNat, false, null, false, vpcId, displayIp); - + ip = fetchNewPublicIp(dcId, null, null, owner, VlanType.VirtualNetwork, guestNtwkId, isSourceNat, true, null, false, vpcId, displayIp); Review comment: @rafaelweingartner actually there is a `ip` variable that is used in `finally` which is why I assign and then return see the code below this line. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services