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 <arau...@gmail.com> 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 > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > > -- Nick Veitch nick.vei...@canonical.com
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju