Add get_motd() to Planner RPC functions
Signed-off-by: James Ren <jamesren@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4395 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/planner/rpc_interface.py b/frontend/planner/rpc_interface.py
index a974b9f..014b7ea 100644
--- a/frontend/planner/rpc_interface.py
+++ b/frontend/planner/rpc_interface.py
@@ -381,8 +381,13 @@
failure.save()
+def get_motd():
+ return afe_rpc_utils.get_motd()
+
+
+
def get_static_data():
- result = {'motd': afe_rpc_utils.get_motd(),
+ result = {'motd': get_motd(),
'host_actions': sorted(failure_actions.HostAction.values),
'test_actions': sorted(failure_actions.TestAction.values)}
return result