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