Add auto accessor for `host` attribute
Depends-On: I75cbc5eb97cf3603ffa5a9a49670411288d90520 Change-Id: I3b11eec3f1c4b8a673ccb6f9e6320d79dbde8f7a Closes-Bug: #1845303
This commit is contained in:
@@ -8,6 +8,8 @@ from charms.reactive import scopes
|
|||||||
class NeutronPluginProvides(RelationBase):
|
class NeutronPluginProvides(RelationBase):
|
||||||
scope = scopes.GLOBAL
|
scope = scopes.GLOBAL
|
||||||
|
|
||||||
|
auto_accessors = ['host']
|
||||||
|
|
||||||
@hook('{provides:neutron-plugin}-relation-{joined,changed}')
|
@hook('{provides:neutron-plugin}-relation-{joined,changed}')
|
||||||
def changed(self):
|
def changed(self):
|
||||||
self.set_state('{relation_name}.connected')
|
self.set_state('{relation_name}.connected')
|
||||||
|
|||||||
Reference in New Issue
Block a user