Tue, May 17, 2016 at 11:24:47AM CEST, jprochaz(a)redhat.com wrote:
This will be used in list_pools action for accessing dictionary
with available pools.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/SlavePool.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Controller/SlavePool.py b/lnst/Controller/SlavePool.py
index e825998..02715ed 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -57,6 +57,9 @@ class SlavePool:
self._mapper.set_pools(self._pools)
logging.info("Finished loading pools.")
+ def get_pools(self):
+ return self._pools
+
def add_dir(self, pool_name, dir_path):
logging.info("Processing pool '%s', directory '%s'" %
(pool_name,
dir_path))
Please swap first and second patch. You're using get_pools() in the first
patch but it's added in this one.