5 from charms.reactive import main
6 from charms.reactive import set_state
7 from charmhelpers.core.hookenv import action_fail
10 `set_state` only works here because it's flushed to disk inside the `main()`
11 loop. remove_state will need to be called inside the action method.
13 set_state('actions.get-state')
17 except Exception as e: