Makes list method not abstract

Any implementations of key_manager that don't have "list"
defined (i.e. ConfKeyManager in Nova and Cinder) will not be
instantiable if they try to use a version of Castellan
that was released after "list" was added. Adds a default
implementation of "list" that returns nothing for backwards
compatibility.

Closes-Bug: #1715451
Change-Id: I1e413831163bffaed3a2580f039e242da7d303f8
This commit is contained in:
Kaitlin Farr 2017-09-11 16:54:28 -04:00
parent aa2a03f5ec
commit ffd9f484df
1 changed files with 1 additions and 2 deletions

View File

@ -110,7 +110,6 @@ class KeyManager(object):
"""
pass
@abc.abstractmethod
def list(self, context, object_type=None, metadata_only=False):
"""Lists the managed objects given the criteria.
@ -123,4 +122,4 @@ class KeyManager(object):
returned, depending on the metadata_only flag. If no objects are
found, an empty list should be returned instead.
"""
pass
return []