From c7ea27cde7a4cec91268a1ac78690b62cfa36c63 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Thu, 18 Oct 2018 16:18:03 +0200 Subject: [PATCH] Add import of charm class to reactive handler The charm class is not used by any handlers, but the import needs to be there for ``charms.openstack`` to find the charm instance. --- src/reactive/barbican_vault_handlers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/reactive/barbican_vault_handlers.py b/src/reactive/barbican_vault_handlers.py index 8c496bc..520d3ff 100644 --- a/src/reactive/barbican_vault_handlers.py +++ b/src/reactive/barbican_vault_handlers.py @@ -18,6 +18,10 @@ import charms.reactive as reactive import charms_openstack.charm as charm +# The charm class is not used by any handlers, but the import needs to be here +# for ``charms.openstack`` to find the charm instance. +import charm.openstack.barbican_vault as barbican_vault # noqa + # Use the charms.openstack defaults for common states and hooks charm.use_defaults( 'charm.installed',