From 4522a96dab6cf70d73346b306637b744e7b157cc Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Mon, 24 Oct 2011 17:43:27 +0200
Subject: [PATCH] rpc: Convert OS-related calls

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/build/rpc_definitions.py |  2 +-
 lib/rpc.py                   | 31 -------------------------------
 2 files changed, 1 insertion(+), 32 deletions(-)

diff --git a/lib/build/rpc_definitions.py b/lib/build/rpc_definitions.py
index b1a0eed24..e93cc787d 100644
--- a/lib/build/rpc_definitions.py
+++ b/lib/build/rpc_definitions.py
@@ -342,5 +342,5 @@ _MISC_CALLS = [
   ]
 
 CALLS = {
-  "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS),
+  "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS),
   }
diff --git a/lib/rpc.py b/lib/rpc.py
index 4f8fa4ef9..2fcb1b955 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -1295,37 +1295,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
     return self._SingleNodeCall(node, "run_oob", [oob_program, command,
                                                   remote_node, timeout])
 
-  @_RpcTimeout(_TMO_FAST)
-  def call_os_diagnose(self, node_list):
-    """Request a diagnose of OS definitions.
-
-    This is a multi-node call.
-
-    """
-    return self._MultiNodeCall(node_list, "os_diagnose", [])
-
-  @_RpcTimeout(_TMO_FAST)
-  def call_os_get(self, node, name):
-    """Returns an OS definition.
-
-    This is a single-node call.
-
-    """
-    result = self._SingleNodeCall(node, "os_get", [name])
-    if not result.fail_msg and isinstance(result.payload, dict):
-      result.payload = objects.OS.FromDict(result.payload)
-    return result
-
-  @_RpcTimeout(_TMO_FAST)
-  def call_os_validate(self, nodes, required, name, checks, params):
-    """Run a validation routine for a given OS.
-
-    This is a multi-node call.
-
-    """
-    return self._MultiNodeCall(nodes, "os_validate",
-                               [required, name, checks, params])
-
   @_RpcTimeout(_TMO_NORMAL)
   def call_hooks_runner(self, node_list, hpath, phase, env):
     """Call the hooks runner.
-- 
GitLab