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 49680200BE8 for ; Fri, 23 Dec 2016 11:15:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4665C160B1D; Fri, 23 Dec 2016 10:15:06 +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 88C73160B1E for ; Fri, 23 Dec 2016 11:15:05 +0100 (CET) Received: (qmail 78319 invoked by uid 500); 23 Dec 2016 10:15:04 -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 77333 invoked by uid 99); 23 Dec 2016 10:15:03 -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; Fri, 23 Dec 2016 10:15:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 67A2FDFB01; Fri, 23 Dec 2016 10:15:03 +0000 (UTC) From: rajesh-battala To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request #1859: CLOUDSTACK - 8672 : NCC Integration with Clou... Content-Type: text/plain Message-Id: <20161223101503.67A2FDFB01@git1-us-west.apache.org> Date: Fri, 23 Dec 2016 10:15:03 +0000 (UTC) archived-at: Fri, 23 Dec 2016 10:15:06 -0000 Github user rajesh-battala commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1859#discussion_r93747834 --- Diff: server/src/com/cloud/hypervisor/HypervisorGuruBase.java --- @@ -132,7 +133,12 @@ protected VirtualMachineTO toVirtualMachineTO(VirtualMachineProfile vmProfile) { NicTO[] nics = new NicTO[nicProfiles.size()]; int i = 0; for (NicProfile nicProfile : nicProfiles) { - nics[i++] = toNicTO(nicProfile); + if(vm.getType() == VirtualMachine.Type.NetScalerVm) { + //if(i == 0){ --- End diff -- Remove unused code --- 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. ---