Re: How to set state in @hook code block?

2017-07-19 Thread John Meinel
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

How to set state in @hook code block?

2017-07-19 Thread fengxia
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

Re: conjure-up status: conjure-up is currently broken

2017-07-19 Thread Adam Stokes
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