At the moment, lnst-ctl drops dead when you specify some parameters
in the requirements for the devices.
This patch fixes it.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
---
lnst/Controller/NetTestParse.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lnst/Controller/NetTestParse.py b/lnst/Controller/NetTestParse.py
index 430c033..6f7d901 100644
--- a/lnst/Controller/NetTestParse.py
+++ b/lnst/Controller/NetTestParse.py
@@ -230,10 +230,10 @@ class RequirementsParse(RecipeParser):
scheme = {"params": self._params}
params = {"target": dev["params"]}
- self._process_child_nodes(node, scheme)
+ self._process_child_nodes(node, scheme, params)
if "type" in dev["params"]:
- dev["type"] = self._get_attribute(node, "type")
+ dev["type"] = dev["params"]["type"]
if "hwaddr" in dev["params"]:
dev["hwaddr"] =
normalize_hwaddr(dev["params"]["hwaddr"])
--
1.7.7.6