Re: Juju charm hook vs. state

2017-04-14 Thread Alex Kavanagh
Hi On Fri, Apr 14, 2017 at 8:19 PM, fengxia wrote: > I'm learning charm development and confused about state vs. hook. > Welcome to charm authoring! So, as you're probably starting to work out, hooks and states are different things. I'll try to explain the difference.

Juju charm hook vs. state

2017-04-14 Thread fengxia
I'm learning charm development and confused about state vs. hook. I used @when_not("state.0") to mark the very first function that gets executed. In document it also says "install" hook will be the first to execute. Tried @hooks.hook("install") but it just failed at charm installation. So