summaryrefslogtreecommitdiff
path: root/hooks/ceph-exporter-relation-departed
diff options
Diffstat (limited to 'hooks/ceph-exporter-relation-departed')
-rwxr-xr-xhooks/ceph-exporter-relation-departed19
1 files changed, 19 insertions, 0 deletions
diff --git a/hooks/ceph-exporter-relation-departed b/hooks/ceph-exporter-relation-departed
new file mode 100755
index 0000000..64c8489
--- /dev/null
+++ b/hooks/ceph-exporter-relation-departed
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+
+# Load modules from $JUJU_CHARM_DIR/lib
+import sys
+sys.path.append('lib')
+
+from charms.layer import basic
+basic.bootstrap_charm_deps()
+basic.init_config_states()
+
+
+# This will load and run the appropriate @hook and other decorated
+# handlers from $JUJU_CHARM_DIR/reactive, $JUJU_CHARM_DIR/hooks/reactive,
+# and $JUJU_CHARM_DIR/hooks/relations.
+#
+# See https://jujucharms.com/docs/stable/authors-charm-building
+# for more information on this pattern.
+from charms.reactive import main
+main()