Signed-off-by: Radek Pazdera <rpazdera(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 ea4bb46..a49159b 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -57,6 +57,9 @@ class SlavePool:
for dirent in dentries:
res.append(self.add_file("%s/%s" % (pool_dir, dirent)))
+ if len(res) == 0:
+ logging.warn("No machines found in this directory")
+
max_len = 0
for m_id, _ in res:
if len(m_id) > max_len:
--
1.8.3.1