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:
Alex Kavanagh 2017-11-23 14:09:39 +00:00
parent ceb612a49d
commit 3f540c2938
2 changed files with 8 additions and 8 deletions

View File

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

View File

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