Commit 5fcc718f authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix some epydoc style issues

99% of the epydoc return tags are "@return:", but each of the modified files
had one "@returns:" line. We fix this for consistency.

Reviewed-by: imsnah
parent 28e15341
......@@ -282,7 +282,7 @@ def InitConfig(version, cluster_config, master_node_config,
@param cfg_file: configuration file path
@rtype: L{ssconf.SimpleConfigWriter}
@returns: initialized config instance
@return: initialized config instance
"""
nodes = {
......
......@@ -856,7 +856,7 @@ def FormatTimestamp(ts):
@param ts: a timeval-type timestamp, a tuple of seconds and microseconds
@rtype: string
@returns: a string with the formatted timestamp
@return: a string with the formatted timestamp
"""
if not isinstance (ts, (tuple, list)) or len(ts) != 2:
......
......@@ -1670,7 +1670,7 @@ class LUDiagnoseOS(NoHooksLU):
@param rlist: a map with node names as keys and OS objects as values
@rtype: dict
@returns: a dictionary with osnames as keys and as value another map, with
@return: a dictionary with osnames as keys and as value another map, with
nodes as keys and list of OS objects as values, eg::
{"debian-etch": {"node1": [<object>,...],
......
......@@ -827,7 +827,7 @@ class ConfigWriter:
"""Get the configuration of all instances.
@rtype: dict
@returns: dict of (instance, instance_info), where instance_info is what
@return: dict of (instance, instance_info), where instance_info is what
would GetInstanceInfo return for the node
"""
......
......@@ -368,7 +368,7 @@ class HttpClientManager(object):
@type requests: List of HttpClientRequest instances
@param requests: The requests to execute
@rtype: List of HttpClientRequest instances
@returns: The list of requests passed in
@return: The list of requests passed in
"""
# _HttpClientPendingRequest is used for internal thread synchronization
......
......@@ -322,7 +322,7 @@ class R_2_instances(baserlib.R_Generic):
...
]
@returns: a dictionary with 'name' and 'uri' keys for each of them.
@return: a dictionary with 'name' and 'uri' keys for each of them.
"""
client = luxi.Client()
......@@ -340,7 +340,7 @@ class R_2_instances(baserlib.R_Generic):
def POST(self):
"""Create an instance.
@returns: a job id
@return: a job id
"""
if not isinstance(self.req.request_body, dict):
......
......@@ -217,7 +217,7 @@ class Client:
"""Call nodes and return results.
@rtype: list
@returns: List of RPC results
@return: List of RPC results
"""
assert _http_manager, "RPC module not intialized"
......
......@@ -1446,7 +1446,7 @@ def Daemonize(logfile):
@type logfile: str
@param logfile: the logfile to which we should redirect stdout/stderr
@rtype: int
@returns: the value zero
@return: the value zero
"""
UMASK = 077
......
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