I forgot to add a condition while reading the libvirt_domain argument
from the SlavePool XML and therefore an exception was raised in case
the argument was missing.
This should fix the problem
Reported-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
---
lnst/Controller/SlavePool.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lnst/Controller/SlavePool.py b/lnst/Controller/SlavePool.py
index 9674fb7..dc13f23 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -138,7 +138,10 @@ class SlavePool:
pm = self._pool[pm_id]
hostname = pm["params"]["hostname"]
- libvirt_domain = pm["params"]["libvirt_domain"]
+
+ libvirt_domain = None
+ if "libvirt_domain" in pm["params"]:
+ libvirt_domain = pm["params"]["libvirt_domain"]
machine = Machine(tm_id, hostname, libvirt_domain)
--
1.7.7.6