summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kavanagh <alex@ajkavanagh.co.uk>2017-11-23 14:09:39 +0000
committerAlex Kavanagh <alex@ajkavanagh.co.uk>2017-11-23 14:09:39 +0000
commit3f540c2938a29b4f7e2d594ab0b2461d71874e7d (patch)
tree835cbce9f861097559a86faea09ff07fc932c8e6
parentceb612a49d5af8e506d3010c23ed9b87503f89cc (diff)
Remove StateList and State from provides/requires files
When charms.reactive 0.5.0 was released, the reactive.bus.State and reactive.bus.StateList were deprecated. This change removes them as the manila and manila-generic charms will no longer function. Change-Id: Ifc025d063d5fba5f2b8b20773b4a9543f883a0ea Closes-Bug: #1718152
Notes
Notes (review): Verified+1: Canonical CI <uosci-testing-bot@ubuntu.com> Code-Review+2: Liam Young <liam.young@canonical.com> Workflow+1: Liam Young <liam.young@canonical.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 23 Nov 2017 15:57:36 +0000 Reviewed-on: https://review.openstack.org/522562 Project: openstack/charm-interface-manila-plugin Branch: refs/heads/master
-rw-r--r--provides.py8
-rw-r--r--requires.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/provides.py b/provides.py
index d2b2cb1..53bd133 100644
--- a/provides.py
+++ b/provides.py
@@ -36,10 +36,10 @@ class ManilaPluginProvides(reactive.RelationBase):
36 # with a basic documentation string provided. 36 # with a basic documentation string provided.
37 auto_accessors = ['_authentication_data'] 37 auto_accessors = ['_authentication_data']
38 38
39 class states(reactive.bus.StateList): 39 class states():
40 connected = reactive.bus.State('{relation_name}.connected') 40 connected = '{relation_name}.connected'
41 available = reactive.bus.State('{relation_name}.available') 41 available = '{relation_name}.available'
42 changed = reactive.bus.State('{relation_name}.changed') 42 changed = '{relation_name}.changed'
43 43
44 @reactive.hook('{provides:manila-plugin}-relation-joined') 44 @reactive.hook('{provides:manila-plugin}-relation-joined')
45 def joined(self): 45 def joined(self):
diff --git a/requires.py b/requires.py
index 54637bb..79d44f1 100644
--- a/requires.py
+++ b/requires.py
@@ -36,10 +36,10 @@ class ManilaPluginRequires(reactive.RelationBase):
36 # with a basic documentation string provided. 36 # with a basic documentation string provided.
37 auto_accessors = ['_name', '_configuration_data'] 37 auto_accessors = ['_name', '_configuration_data']
38 38
39 class states(reactive.bus.StateList): 39 class states():
40 connected = reactive.bus.State('{relation_name}.connected') 40 connected = '{relation_name}.connected'
41 available = reactive.bus.State('{relation_name}.available') 41 available = '{relation_name}.available'
42 changed = reactive.bus.State('{relation_name}.changed') 42 changed = '{relation_name}.changed'
43 43
44 @reactive.hook('{requires:manila-plugin}-relation-joined') 44 @reactive.hook('{requires:manila-plugin}-relation-joined')
45 def joined(self): 45 def joined(self):