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
This commit is contained in:
parent
ceb612a49d
commit
3f540c2938
@ -36,10 +36,10 @@ class ManilaPluginProvides(reactive.RelationBase):
|
||||
# with a basic documentation string provided.
|
||||
auto_accessors = ['_authentication_data']
|
||||
|
||||
class states(reactive.bus.StateList):
|
||||
connected = reactive.bus.State('{relation_name}.connected')
|
||||
available = reactive.bus.State('{relation_name}.available')
|
||||
changed = reactive.bus.State('{relation_name}.changed')
|
||||
class states():
|
||||
connected = '{relation_name}.connected'
|
||||
available = '{relation_name}.available'
|
||||
changed = '{relation_name}.changed'
|
||||
|
||||
@reactive.hook('{provides:manila-plugin}-relation-joined')
|
||||
def joined(self):
|
||||
|
@ -36,10 +36,10 @@ class ManilaPluginRequires(reactive.RelationBase):
|
||||
# with a basic documentation string provided.
|
||||
auto_accessors = ['_name', '_configuration_data']
|
||||
|
||||
class states(reactive.bus.StateList):
|
||||
connected = reactive.bus.State('{relation_name}.connected')
|
||||
available = reactive.bus.State('{relation_name}.available')
|
||||
changed = reactive.bus.State('{relation_name}.changed')
|
||||
class states():
|
||||
connected = '{relation_name}.connected'
|
||||
available = '{relation_name}.available'
|
||||
changed = '{relation_name}.changed'
|
||||
|
||||
@reactive.hook('{requires:manila-plugin}-relation-joined')
|
||||
def joined(self):
|
||||
|
Loading…
Reference in New Issue
Block a user