From 73dba739d05ecf4591b5e8094a8011d0165a4ee2 Mon Sep 17 00:00:00 2001 From: James Page Date: Thu, 6 Jul 2017 16:43:39 +0100 Subject: [PATCH] Reset conversation scope to GLOBAL --- provides.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provides.py b/provides.py index bca1c86..0f8394c 100644 --- a/provides.py +++ b/provides.py @@ -18,7 +18,7 @@ from charms.reactive import scopes class GnocchiProvides(RelationBase): - scope = scopes.UNIT + scope = scopes.GLOBAL @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.conversation().set_remote(gnocchi_url=url) + self.set_remote(gnocchi_url=url)