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:
parent
aa2a03f5ec
commit
ffd9f484df
|
@ -110,7 +110,6 @@ class KeyManager(object):
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abc.abstractmethod
|
|
||||||
def list(self, context, object_type=None, metadata_only=False):
|
def list(self, context, object_type=None, metadata_only=False):
|
||||||
"""Lists the managed objects given the criteria.
|
"""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
|
returned, depending on the metadata_only flag. If no objects are
|
||||||
found, an empty list should be returned instead.
|
found, an empty list should be returned instead.
|
||||||
"""
|
"""
|
||||||
pass
|
return []
|
||||||
|
|
Loading…
Reference in New Issue