ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Quiroga <quirogadf4w...@gmail.com>
Subject Re: why status can not use config['configurations']
Date Mon, 25 Jun 2018 13:59:31 GMT
If possible can you share more code. Hard to understand what is going on.
Are you modifying an existing script or creating a custom one?

On Mon, Jun 25, 2018 at 3:01 AM, <xiang.dai@sky-data.cn> wrote:

> Hi!
>
> config = Script.get_config()
> Then I want to use config['configurations']['ntpd']['deploy'] in status
> function, but it says:
>
> Fail: Configuration parameter 'ntpd' was not found in configurations
> dictionary!
>
> I also use config['configurations']['ntpd']['deploy'] in start and stop
> function, both ok.
>
> And i try to print config in status funtion, it only prints
> agentConfigParams.
>
> So how can i use config['configurations']['ntpd']['deploy']?
>
> Thanks.
>
>
>
>

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