summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Uría <alvaro.uria@canonical.com>2016-03-09 10:54:18 +0100
committerAlvaro Uría <alvaro.uria@canonical.com>2016-03-09 10:54:18 +0100
commitc37a1793691f2c0643b94c4a35b1edffa4e9f078 (patch)
tree64fb659c1ca81d950e26ed1ab7c812f3ec0a69e4
parentf7a29dadb804e4dccaf4338d5998e801e86d2a46 (diff)
[fix] interface name
-rw-r--r--requires.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/requires.py b/requires.py
index ab80196..ef22fdb 100644
--- a/requires.py
+++ b/requires.py
@@ -25,7 +25,7 @@ class KeystoneRequires(RelationBase):
25 'service_port', 'service_region', 25 'service_port', 'service_region',
26 'service_tenant_name', 'service_username'] 26 'service_tenant_name', 'service_username']
27 27
28 @hook('{requires:keystone}-relation-{joined,changed}') 28 @hook('{requires:keystone-admin}-relation-{joined,changed}')
29 def changed(self): 29 def changed(self):
30 conv = self.conversation() 30 conv = self.conversation()
31 conv.set_state('{relation_name}.connected') 31 conv.set_state('{relation_name}.connected')
@@ -34,7 +34,7 @@ class KeystoneRequires(RelationBase):
34 else: 34 else:
35 conv.remove_state('{relation_name}.available') 35 conv.remove_state('{relation_name}.available')
36 36
37 @hook('{requires:keystone}-relation-{broken,departed}') 37 @hook('{requires:keystone-admin}-relation-{broken,departed}')
38 def departed(self): 38 def departed(self):
39 conv = self.conversation() 39 conv = self.conversation()
40 conv.remove_state('{relation_name}.available') 40 conv.remove_state('{relation_name}.available')