Implement add_consumer, remove_consumer KeyManager APIs
These were introduced in Bobcat but later reverted [1]. Add them now in preparation for a future major version bump of Castellan. [1] https://review.opendev.org/c/openstack/castellan/+/895502/ Change-Id: I6da56b0e2d7c027b646eee2cac0699521223f033 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
8a9f9a7c36
commit
d4b57d76c6
@ -146,6 +146,16 @@ class ConfKeyManager(key_manager.KeyManager):
|
||||
|
||||
LOG.warning("Not deleting key %s", managed_object_id)
|
||||
|
||||
def add_consumer(self, context, managed_object_id, consumer_data):
|
||||
raise NotImplementedError(
|
||||
'ConfKeyManager does not implement adding consumers'
|
||||
)
|
||||
|
||||
def remove_consumer(self, context, managed_object_id, consumer_data):
|
||||
raise NotImplementedError(
|
||||
'ConfKeyManager does not implement removing consumers'
|
||||
)
|
||||
|
||||
def list(self, context, object_type=None, metadata_only=False):
|
||||
"""Retrieves a list of managed objects that match the criteria.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user