Add ``host`` attribute on requires side

Commit 6dca7338b2 added the attribute
on the wrong side of the interface.

Change-Id: I6d561617805280caebfe6e408d74ceaccefa1f08
Closes-Bug: #1845303
This commit is contained in:
Frode Nordahl 2019-10-02 06:25:23 +02:00
parent 6dca7338b2
commit adbfcb4ddd
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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')