This allows a job to do its own host allocation, for example.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
v2: New patch
---
 sg-run-job | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sg-run-job b/sg-run-job
index 8acb902..cfbc34b 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -73,6 +73,9 @@ proc run-job {job} {
 
     if {$ok} { setstatus running                                          }
 
+    if {$ok && ![catch { info args prep-job/$jobinfo(recipe) }]} \
+        {      catching-otherwise fail     prep-job/$jobinfo(recipe)      }
+
     per-host-ts broken  host-install/@(*) ts-host-install-twice
 
     per-host-prep
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to