Thank you guys!

Best,
Fred

On Fri, Oct 2, 2015 at 7:14 PM, Nick Veitch <[email protected]>
wrote:

> Hi,
>
> There is a config-get hook tool which does the same job (
> https://jujucharms.com/docs/stable/authors-hook-environment#config-get)
> Actually, that whole page is a good read because there is a lot of info
> about the hook environment and other hooks tools there.
>
> hth
>
> On 3 October 2015 at 00:32, Frederico Araujo <[email protected]> wrote:
>
>> Hi list,
>>
>> Is there a way to get the configuration options from config.yaml from a
>> hook written in Bash (e.g., environment variable)? I noticed that in Python
>> we can import from the charmshelper API like this:
>>
>>    1. from charmhelpers.core.hookenv import (
>>    2.     config as config_get,
>>    3.     ...
>>
>>
>> And then use config_get['option'] to retrieve the option value.
>>
>> Thanks,
>>
>> Fred
>>
>>
>>
>> --
>> Juju mailing list
>> [email protected]
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
>
>
> --
> Nick Veitch
> [email protected]
>
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to