6
sys.path.insert(0, os.path.join(os.environ['CHARM_DIR'], 'lib'))
8
from charmhelpers.core import (
13
from start import start
15
hooks = hookenv.Hooks()
21
@hooks.hook('config-changed')
23
config = hookenv.config()
26
if config.changed(key):
27
log("config['{}'] changed from {} to {}".format(
28
key, config.previous(key), config[key]))
34
if __name__ == "__main__":
35
# execute a hook based on the name the program is called by
36
hooks.execute(sys.argv)