From adbfcb4ddd5c83d5fa369d3fcce4381a3ac6711e Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Wed, 2 Oct 2019 06:25:23 +0200 Subject: [PATCH] Add ``host`` attribute on requires side Commit 6dca7338b2fa8181342a0a6c49bc582a141c3972 added the attribute on the wrong side of the interface. Change-Id: I6d561617805280caebfe6e408d74ceaccefa1f08 Closes-Bug: #1845303 --- provides.py | 2 -- requires.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) 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')