Remove the ability for host status to be modified via the frontend.
This interferes with the monitor_db scheduler as it owns the field.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3584 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index bfd0810..67da52d 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -114,14 +114,16 @@
 
 
 def modify_host(id, **data):
+    rpc_utils.check_modify_host(data)
     models.Host.smart_get(id).update_object(data)
 
 
 def modify_hosts(host_filter_data, update_data):
     """
-    @param host_filter_data filters out which hosts to modify
-    @param update_data dictionary with the changes to make to the hosts
+    @param host_filter_data: Filters out which hosts to modify.
+    @param update_data: A dictionary with the changes to make to the hosts.
     """
+    rpc_utils.check_modify_host(update_data)
     hosts = models.Host.query_objects(host_filter_data)
     for host in hosts:
         host.update_object(update_data)