I'm pretty sure hooks execute in the parent directory.
So if you have
charm/
hooks/
db-relation-changed
myfiles/
test.yaml
you need to
open("hooks/myfiles/test.yaml")
John
=:->
On Jul 20, 2017 04:58, "fengxia" wrote:
> Hi Juju,
>
> I think I read at some point in the official doc
Hi Juju,
I think I read at some point in the official document that you can't set
state from hook.
However, this is what I'm trying to achieve: in @hook('config-changed'),
I will pass in a file path as a config value. Files are part of the
charm so they are installed in
/var/lib/juju/agents
The snap team has worked tirelessly to get a fix into the core snap's beta
channel. We've had positive feedback on conjure-up being fixed.
If you want to go ahead and get the fix run the following:
```
sudo snap refresh core --beta
```
Once they release to stable your core snap will be updated a