Add list() method to ManagerWithFind
ManagerWithFind.find() method wants to use self.list() but Manager does not provides it. Therefore, it's better to implement it as an interface here, and raise a NotImplementedError. Change-Id: Iba6ef2c1f789c2eb12b210d42261d63796db3407 Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
This commit is contained in:
parent
88bdfdd12f
commit
3fcf4a1374
@ -181,6 +181,9 @@ class ManagerWithFind(Manager):
|
||||
|
||||
return found
|
||||
|
||||
def list(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class BootingManagerWithFind(ManagerWithFind):
|
||||
"""Like a `ManagerWithFind`, but has the ability to boot servers."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user