From: Ondrej Lichtner <olichtne(a)redhat.com>
The Host object instance needs to be created before the
"_prepare_machine" call as this initializes the "initns" attribute in
the Machine object.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/RecipeControl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/RecipeControl.py b/lnst/Controller/RecipeControl.py
index d43f7ce8..e71cee58 100644
--- a/lnst/Controller/RecipeControl.py
+++ b/lnst/Controller/RecipeControl.py
@@ -58,7 +58,7 @@ def condition():
msg_dispatcher.wait_for_condition(condition, timeout)
+ host = Host(m)
self._controller._prepare_machine(m)
m.start_recipe(self._recipe)
- host = Host(m)
return host
--
2.31.1