Beware global state in hooks

David Cheney david.cheney at
Mon Sep 16 22:52:55 UTC 2013

> Be careful when touching process-global state when writing charm
> hooks. Calling out to the juju tools such as config-get will inherit
> the normal C environment, and juju may break in surprising ways if you
> don't leave it how you found it.

I'm confused, are you saying the subprocess was able to mutate the
environment of the caller ? I really don't follow.

More information about the Juju mailing list