You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Jeff Zhang <zj...@gmail.com> on 2016/01/08 03:21:33 UTC

How to get the host list in params.py ?

Is there any api to get the host list in params.py ? Thanks

-- 
Best Regards

Jeff Zhang

Re: How to get the host list in params.py ?

Posted by Bhuvnesh Chaudhary <bc...@pivotal.io>.
you can get the config['clusterHostInfo'] and create a list out of it.

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

Thanks,
Bhuvnesh Chaudhary
Email: bchau <bc...@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 <zj...@gmail.com> wrote:

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