ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhuvnesh Chaudhary <bchaudh...@pivotal.io>
Subject Re: How to get the host list in params.py ?
Date Fri, 08 Jan 2016 02:31:59 GMT
you can get the config['clusterHostInfo'] and create a list out of it.

config = Script.get_config()
config['clusterHostInfo']

Thanks,
Bhuvnesh Chaudhary
Email: bchau <bchaudhary@gopivotal.com>dhary@pivotal.io
Desk: +1-650-846-1696 | Mobile: +1-973-906-6976

On Thu, Jan 7, 2016 at 6:21 PM, Jeff Zhang <zjffdu@gmail.com> wrote:

> Is there any api to get the host list in params.py ? Thanks
>
> --
> Best Regards
>
> Jeff Zhang
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message