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 31C79200C45 for ; Tue, 14 Mar 2017 03:25:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 30590160B85; Tue, 14 Mar 2017 02:25:39 +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 6FA80160B5D for ; Tue, 14 Mar 2017 03:25:38 +0100 (CET) Received: (qmail 43117 invoked by uid 500); 14 Mar 2017 02:25:36 -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 43105 invoked by uid 99); 14 Mar 2017 02:25:36 -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; Tue, 14 Mar 2017 02:25:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 51FE9DFE34; Tue, 14 Mar 2017 02:25:36 +0000 (UTC) From: nvazquez To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack issue #1278: CLOUDSTACK-9198: Virtual router gets deployed in dis... Content-Type: text/plain Message-Id: <20170314022536.51FE9DFE34@git1-us-west.apache.org> Date: Tue, 14 Mar 2017 02:25:36 +0000 (UTC) archived-at: Tue, 14 Mar 2017 02:25:39 -0000 Github user nvazquez commented on the issue: https://github.com/apache/cloudstack/pull/1278 Hi @rafaelweingartner @anshul1886 @GabrielBrascher, I've read this PR's comments several times and I think I could understand @anshul1886's point. Please correct me if I'm wrong. The execution of `getCallingAccount()` is setting the context with the proper account, and I think that's fine, as next methods will use it (e.g. `orchestrateStart` in `VirtualMachineManagerImpl` lines 829-831). I also agree with @rafaelweingartner and @GabrielBrascher that even though the context is being set, variables `user` and `caller` on `start` method (defined on line 266) are not being used. @anshul1886, if no validations are required and the context is already set, don't you think that those unused parameters can be removed? --- 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. ---