JUJU_UNIT_NAME no longer set in env

Nick Veitch nick.veitch at canonical.com
Tue May 23 09:08:45 UTC 2017


I don't believe you can (usually) execute hooks properly e.g. via 'juju
run' or ssh, precisely because the hook doesn't then run in a hook context.
If you run 'juju debug-hooks' and wait for a hook to fire, then the various
$ENV variables should be available in that session.

https://jujucharms.com/docs/stable/developer-debugging#the-'debug-hooks'-command

On 23 May 2017 at 08:56, John Meinel <john at arbash-meinel.com> wrote:
>
> I *think* the hook context actually runs in the directory just above
> 'hooks', but I'm not 100% positive.
>

it does :)

-- 
Nick Veitch,
Documentation
Canonical
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170523/c1b7b282/attachment.html>


More information about the Juju mailing list