Return a better error message when job create fails due to a deps check.

Signed-off-by: Gregory Smith <[email protected]>

--- autotest/frontend/afe/rpc_utils.py  2010-07-14 12:42:00.000000000 -0700
+++ autotest/frontend/afe/rpc_utils.py  2010-09-23 16:46:27.000000000 -0700
@@ -233,8 +233,10 @@
                      set(host.hostname for host in ok_hosts))
     if failing_hosts:
         raise model_logic.ValidationError(
-            {'hosts' : 'Host(s) failed to meet job dependencies: ' +
-                       ', '.join(failing_hosts)})
+            {'hosts' : 'Host(s) failed to meet job dependencies (' +
+                       (', '.join(job_dependencies)) + '): ' +
+                       (', '.join(failing_hosts))})
+
 
 
 def _execution_key_for(host_queue_entry):
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to