<div dir="ltr">Process hierarchy<div><br></div><div>unit agent -> hook -> juju-cli hook api (config-get/relation-get/set)</div><div><br></div><div>He's saying the hook env can effect runtime of the hook cli api. Its debatable, but one option might be white-listing env variables that the hooks support, and unsetting those not related.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 7:52 AM, David Cheney <span dir="ltr"><<a href="mailto:david.cheney@canonical.com" target="_blank">david.cheney@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Be careful when touching process-global state when writing charm<br>
> hooks. Calling out to the juju tools such as config-get will inherit<br>
> the normal C environment, and juju may break in surprising ways if you<br>
> don't leave it how you found it.<br>
<br>
</div>I'm confused, are you saying the subprocess was able to mutate the<br>
environment of the caller ? I really don't follow.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</div></div></blockquote></div><br></div>