Preparation for adding a widget to edit job dependencies in the create job view in AFE. I haven't quite finalized how to add the widget so it's not there yet, but this puts the piece in place, and also fixes a bug with job cloning and dependencies.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2547 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index 41f4eb6..e57c180 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -461,6 +461,8 @@
meta_host_counts[meta_host] += 1
info['job'] = job.get_object_dict()
+ info['job']['dependencies'] = [label.name for label
+ in job.dependency_labels.all()]
info['meta_host_counts'] = meta_host_counts
info['hosts'] = host_dicts