Commit 6ddc95ec authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Add RPC call to update ssconf files

Reviewed-by: iustinp
parent d418ebfb
......@@ -496,6 +496,13 @@ class NodeHttpServer(http.HttpServer):
return backend.GetMasterInfo()
def perspective_write_ssconf_files(params):
"""Write ssconf files.
return backend.WriteSsconfFiles()
# os -----------------------
......@@ -1226,6 +1226,10 @@ def UploadFile(file_name, data, mode, uid, gid, atime, mtime):
return True
def WriteSsconfFiles():
def _ErrnoOrStr(err):
"""Format an EnvironmentError exception.
......@@ -587,6 +587,15 @@ class RpcRunner(object):
return cls._StaticMultiNodeCall(node_list, "upload_file", params,
def call_write_ssconf_files(cls, node_list):
"""Write ssconf files.
This is a multi-node call.
return cls._StaticMultiNodeCall(node_list, "write_ssconf_files", [])
def call_os_diagnose(self, node_list):
"""Request a diagnose of OS definitions.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment