Add auto accessor for ``host`` attribute

Depends-On: I75cbc5eb97cf3603ffa5a9a49670411288d90520
Change-Id: I3b11eec3f1c4b8a673ccb6f9e6320d79dbde8f7a
Closes-Bug: #1845303
This commit is contained in:
Frode Nordahl 2019-10-01 07:46:04 +02:00
parent fa811c9e9a
commit 6dca7338b2
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ 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')