blob: db9a099c033584b0b89f48f4c05abf8317350997 [file] [log] [blame]
Marco Ceppic5a5e532016-03-28 15:21:34 -04001#!/usr/bin/env python3
2import sys
3sys.path.append('lib')
4
5from charms.reactive import main
6from charms.reactive import set_state
7from charmhelpers.core.hookenv import action_fail
8
9"""
10`set_state` only works here because it's flushed to disk inside the `main()`
11loop. remove_state will need to be called inside the action method.
12"""
13set_state('vpe.configure-interface')
14
15try:
16 main()
17except Exception as e:
18 action_fail(repr(e))