Changed get_hosts() rpc call to return the acls to which the hosts
belong as well.  This info is then used to display the ACLS to
which a host belongs in the HostDetailView tab in AFE.

Signed-off-by: Travis Miller <raphtee@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3041 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index a9e7ca3..a4d3fba 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -142,6 +142,7 @@
         host_dict['labels'] = [label.name for label in host_obj.labels.all()]
         platform = host_obj.platform()
         host_dict['platform'] = platform and platform.name or None
+        host_dict['acls'] = [acl.name for acl in host_obj.aclgroup_set.all()]
         host_dicts.append(host_dict)
     return rpc_utils.prepare_for_serialization(host_dicts)