From 83816869de98847c0b816b0f4b5198ad0ef06764 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Mon, 24 Oct 2011 17:45:06 +0200 Subject: [PATCH] rpc: Convert file-storage-related calls Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/build/rpc_definitions.py | 3 ++- lib/rpc.py | 31 ------------------------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/lib/build/rpc_definitions.py b/lib/build/rpc_definitions.py index 52fb4fb02..f764ae98e 100644 --- a/lib/build/rpc_definitions.py +++ b/lib/build/rpc_definitions.py @@ -342,5 +342,6 @@ _MISC_CALLS = [ ] CALLS = { - "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS + _NODE_CALLS), + "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS + _NODE_CALLS + + _FILE_STORAGE_CALLS), } diff --git a/lib/rpc.py b/lib/rpc.py index 792a78b5f..855e1fb97 100644 --- a/lib/rpc.py +++ b/lib/rpc.py @@ -1336,37 +1336,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault): return self._MultiNodeCall(node_list, "test_delay", [duration], read_timeout=int(duration + 5)) - @_RpcTimeout(_TMO_FAST) - def call_file_storage_dir_create(self, node, file_storage_dir): - """Create the given file storage directory. - - This is a single-node call. - - """ - return self._SingleNodeCall(node, "file_storage_dir_create", - [file_storage_dir]) - - @_RpcTimeout(_TMO_FAST) - def call_file_storage_dir_remove(self, node, file_storage_dir): - """Remove the given file storage directory. - - This is a single-node call. - - """ - return self._SingleNodeCall(node, "file_storage_dir_remove", - [file_storage_dir]) - - @_RpcTimeout(_TMO_FAST) - def call_file_storage_dir_rename(self, node, old_file_storage_dir, - new_file_storage_dir): - """Rename file storage directory. - - This is a single-node call. - - """ - return self._SingleNodeCall(node, "file_storage_dir_rename", - [old_file_storage_dir, new_file_storage_dir]) - @classmethod @_RpcTimeout(_TMO_URGENT) def call_jobqueue_update(cls, node_list, address_list, file_name, content): -- GitLab