commit 94c538bc91683a66bc4682b9de17811d00906029
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Wed Aug 7 15:52:47 2013 +0200
RecipeParse: Adding python attribute to tasks
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/RecipeParse.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Controller/RecipeParse.py b/lnst/Controller/RecipeParse.py
index 6042dfe..8e0aed7 100644
--- a/lnst/Controller/RecipeParse.py
+++ b/lnst/Controller/RecipeParse.py
@@ -271,6 +271,10 @@ class TaskParse(LnstParser):
if self._has_attribute(node, "label"):
task["label"] = self._get_attribute(node, "label")
+ if self._has_attribute(node, "python"):
+ task["python"] = self._get_attribute(node, "python")
+ return task
+
scheme = {"config": self._config,
"run": self._run,
"ctl_wait": self._ctl_wait,
Show replies by date