Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 6C2D818916 for ; Fri, 8 Jan 2016 02:32:55 +0000 (UTC) Received: (qmail 16732 invoked by uid 500); 8 Jan 2016 02:32:50 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 16694 invoked by uid 500); 8 Jan 2016 02:32:50 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 16682 invoked by uid 99); 8 Jan 2016 02:32:50 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2016 02:32:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 706B71A0283 for ; Fri, 8 Jan 2016 02:32:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pivotal-io.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NVS2-Gu7UxDE for ; Fri, 8 Jan 2016 02:32:39 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 4B4F523033 for ; Fri, 8 Jan 2016 02:32:39 +0000 (UTC) Received: by mail-ig0-f173.google.com with SMTP id z14so66329913igp.0 for ; Thu, 07 Jan 2016 18:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=3dglEyDsVYlq0x9xYcClzvdNYKclJ4uxJqLhQz0tQbE=; b=RV9BxXyfABv4O0GGGy//NP4WF5Y995ni6UD16y2BkBBgerDx+T1WVwdaJgVhUk3jCN Fc/nrHM4BuT2RzeO/Lpu0fHJF1jKnzXJL1XYEsUo2vc0yPXWElEHcY3Uojg2vlgvFKEt +dJSEpzON3VfrlzATXG5ddUP375qng7/g6ydaNWmrI5uQ9VNxP6RY8aAUaqzrLLd8woT NLyGpYrIZkJdUCe8REhvP1UKTdImDYi3uGyVGHpmc4GRXP5/D/Gk58ayJri2yz17OWAe xops8g3jKwOZWDRu7pcNRev9ODOel4BuEv5d5S1KtEdYHagxYUfMy33zNIA+xqjRCGVr VHpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=3dglEyDsVYlq0x9xYcClzvdNYKclJ4uxJqLhQz0tQbE=; b=Gj/DS5OSAYeGwIM2RW5wCa16avyQ5MhwPE6E3IwKJNSsJ8yf/nCu87STWDtK7hBsK3 GjD/sL7GaRr62gP8CNBFmvbt9oVzYHbUJ/zGfYjJFQf5XYVO1jAAJiSEIrRGlpWDhbGs 6b+3iR7K4lUiWu/QftCS3/ap1FMGs+e1jrpTt97F/1UA9LBKDrUkbKQI06zU7nq3CgFf hTG4XwaF1MltOned56nr+QBM9x1z8s2qCRHKL8moxk9sPGjAh9nDyvTDys596YFca6ft qvoamINh+VNncTaqjx7vLmShVulkOQYtmJ0usHzzYhek7FyXftzLWsMoCwHMqPnB7JvC lsCg== X-Gm-Message-State: ALoCoQlwBF3SzvB6BC6YWrQDY4lfA3ngfpyOfxMMnu0n0vzJHmKJpVOMM0SZ5h+TT+anqhkIcE5TLjfAqfWjhpuTrvHEr3LQVpL1ieyPqRoL8bYJt7ijtg0= X-Received: by 10.50.79.228 with SMTP id m4mr6619750igx.95.1452220358692; Thu, 07 Jan 2016 18:32:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.206.2 with HTTP; Thu, 7 Jan 2016 18:31:59 -0800 (PST) In-Reply-To: References: From: Bhuvnesh Chaudhary Date: Thu, 7 Jan 2016 18:31:59 -0800 Message-ID: Subject: Re: How to get the host list in params.py ? To: Ambari Content-Type: multipart/alternative; boundary=089e013a1f169dad7f0528c966bb --089e013a1f169dad7f0528c966bb Content-Type: text/plain; charset=UTF-8 you can get the config['clusterHostInfo'] and create a list out of it. config = Script.get_config() config['clusterHostInfo'] Thanks, Bhuvnesh Chaudhary Email: bchau dhary@pivotal.io Desk: +1-650-846-1696 | Mobile: +1-973-906-6976 On Thu, Jan 7, 2016 at 6:21 PM, Jeff Zhang wrote: > Is there any api to get the host list in params.py ? Thanks > > -- > Best Regards > > Jeff Zhang > --089e013a1f169dad7f0528c966bb--