Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC1C318B48 for ; Wed, 13 Jan 2016 05:15:10 +0000 (UTC) Received: (qmail 83708 invoked by uid 500); 13 Jan 2016 05:15:10 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 83651 invoked by uid 500); 13 Jan 2016 05:15:10 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 83640 invoked by uid 99); 13 Jan 2016 05:15:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2016 05:15:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D7BB5E185D; Wed, 13 Jan 2016 05:15:09 +0000 (UTC) From: anshul1886 To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-9198: Virtual router gets depl... Content-Type: text/plain Message-Id: <20160113051509.D7BB5E185D@git1-us-west.apache.org> Date: Wed, 13 Jan 2016 05:15:09 +0000 (UTC) Github user anshul1886 commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1278#discussion_r49552290 --- Diff: server/src/com/cloud/network/router/NetworkHelperImpl.java --- @@ -509,7 +511,9 @@ public DomainRouterVO deployRouter(final RouterDeploymentDefinition routerDeploy if (startRouter) { try { - router = startVirtualRouter(router, _accountMgr.getSystemUser(), _accountMgr.getSystemAccount(), routerDeploymentDefinition.getParams()); + final Account caller = CallContext.current().getCallingAccount(); --- End diff -- @GabrielBrascher Extracting those lines in a method will remove the contextual information from them and will impact the understanding in future so it is done this way. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---