blob: 5ba05f6598e514dda53a55e81c154b171f8f7e2c [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"""
11`set_state` only works here because it's flushed to disk inside the `main()`
12loop. remove_state will need to be called inside the action method.
13"""
14set_state('vpe.delete-domain-connection')
15
16try:
17 main()
18except Exception as e:
19 action_fail(repr(e))