Switch back to UNIT scope

This commit is contained in:
James Page 2017-07-06 16:04:01 +01:00
parent 2ad4ab55bd
commit d31481c34b
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ from charms.reactive import scopes
class GnocchiProvides(RelationBase):
scope = scopes.GLOBAL
scope = scopes.UNIT
@hook('{provides:gnocchi}-relation-{joined}')
def joined(self):
@ -29,4 +29,4 @@ class GnocchiProvides(RelationBase):
self.remove_state('{relation_name}.connected')
def set_gnocchi_url(self, url):
self.set_remote(gnocchi_url=url)
self.conversation().set_remote(gnocchi_url=url)