Add auto accessor for `host
` attribute
Depends-On: I75cbc5eb97cf3603ffa5a9a49670411288d90520 Change-Id: I3b11eec3f1c4b8a673ccb6f9e6320d79dbde8f7a Closes-Bug: #1845303
This commit is contained in:
parent
fa811c9e9a
commit
6dca7338b2
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user