Browse Source

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
changes/62/522562/1
Alex Kavanagh 1 year ago
parent
commit
3f540c2938
2 changed files with 8 additions and 8 deletions
  1. 4
    4
      provides.py
  2. 4
    4
      requires.py

+ 4
- 4
provides.py View File

@@ -36,10 +36,10 @@ class ManilaPluginProvides(reactive.RelationBase):
36 36
     # with a basic documentation string provided.
37 37
     auto_accessors = ['_authentication_data']
38 38
 
39
-    class states(reactive.bus.StateList):
40
-        connected = reactive.bus.State('{relation_name}.connected')
41
-        available = reactive.bus.State('{relation_name}.available')
42
-        changed = reactive.bus.State('{relation_name}.changed')
39
+    class states():
40
+        connected = '{relation_name}.connected'
41
+        available = '{relation_name}.available'
42
+        changed = '{relation_name}.changed'
43 43
 
44 44
     @reactive.hook('{provides:manila-plugin}-relation-joined')
45 45
     def joined(self):

+ 4
- 4
requires.py View File

@@ -36,10 +36,10 @@ class ManilaPluginRequires(reactive.RelationBase):
36 36
     # with a basic documentation string provided.
37 37
     auto_accessors = ['_name', '_configuration_data']
38 38
 
39
-    class states(reactive.bus.StateList):
40
-        connected = reactive.bus.State('{relation_name}.connected')
41
-        available = reactive.bus.State('{relation_name}.available')
42
-        changed = reactive.bus.State('{relation_name}.changed')
39
+    class states():
40
+        connected = '{relation_name}.connected'
41
+        available = '{relation_name}.available'
42
+        changed = '{relation_name}.changed'
43 43
 
44 44
     @reactive.hook('{requires:manila-plugin}-relation-joined')
45 45
     def joined(self):

Loading…
Cancel
Save