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
Kaitlin Farr
6 years ago
109 | 109 | """ |
110 | 110 | pass |
111 | 111 | |
112 | @abc.abstractmethod | |
113 | 112 | def list(self, context, object_type=None, metadata_only=False): |
114 | 113 | """Lists the managed objects given the criteria. |
115 | 114 | |
122 | 121 | returned, depending on the metadata_only flag. If no objects are |
123 | 122 | found, an empty list should be returned instead. |
124 | 123 | """ |
125 | pass | |
124 | return [] |