First customer pain point pull request - default-hook
Gustavo Niemeyer
gustavo at niemeyer.net
Wed Aug 20 14:11:53 UTC 2014
On Wed, Aug 20, 2014 at 5:46 AM, Matthew Williams
<matthew.williams at canonical.com> wrote:
> if JUJU_HOOK_NAME == "start"
> //run start
> else if JUJU_HOOK_NAME == "config-changed"
> //run config-changed
> else if JUJU_HOOK_NAME == "stop"
> //run stop
> else
> //unknown hook
> exit 1
> fi
I'd expect the else to be "exit 0". This is the same behavior you get
when juju would execute a hook but it does not exist in the charm.
gustavo @ http://niemeyer.net
More information about the Juju-dev
mailing list