2016-05-17 13:36 GMT+02:00 Jan Tluka <jtluka@redhat.com>:
Tue, May 17, 2016 at 11:24:47AM CEST, jprochaz@redhat.com wrote:
>This will be used in list_pools action for accessing dictionary
>with available pools.
>
>Signed-off-by: Jiri Prochazka <jprochaz@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.

​I'm so sorry, this was not intentional, will send v3 in a minute.

Thanks for catching it.​