diff --git a/provides.py b/provides.py index 1151664..d15f780 100644 --- a/provides.py +++ b/provides.py @@ -8,8 +8,6 @@ from charms.reactive import scopes class NeutronPluginProvides(RelationBase): scope = scopes.GLOBAL - auto_accessors = ['host'] - @hook('{provides:neutron-plugin}-relation-{joined,changed}') def changed(self): self.set_state('{relation_name}.connected') diff --git a/requires.py b/requires.py index 4d334a4..b98254c 100644 --- a/requires.py +++ b/requires.py @@ -6,6 +6,8 @@ from charms.reactive import scopes class NeutronPluginRequires(RelationBase): scope = scopes.GLOBAL + auto_accessors = ['host'] + @hook('{requires:neutron-plugin}-relation-{joined,changed}') def changed(self): self.set_state('{relation_name}.connected')