diff --git a/lib/bootstrap.py b/lib/bootstrap.py index 3e56154c7629584692fc1b1fb4f399821a71796b..def40738ab71aa3420934a47c9c97acb447baf38 100644 --- a/lib/bootstrap.py +++ b/lib/bootstrap.py @@ -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 = { diff --git a/lib/cli.py b/lib/cli.py index 124f602ed920e8588d9c04217fb2f9b9746d0b11..6db7cea77126585f44bdd4d178a8b2eb9e189f90 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -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: diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 8dbbbab54dbacc3242e7350d87413b399a9458a5..bdc25b7eb7d88e7cd44e22f010da209893888113 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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>,...], diff --git a/lib/config.py b/lib/config.py index e41014ff338648d350b92ed1ee5adac0dddf0183..ee305d68633b4972ec91f49c2ea31ffd25c9cfae 100644 --- a/lib/config.py +++ b/lib/config.py @@ -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 """ diff --git a/lib/http/client.py b/lib/http/client.py index 2c6235629cd2725d5df4cfb4784f5a5919602642..776fadeae37545f8659f1bb6cc896feddc840e90 100644 --- a/lib/http/client.py +++ b/lib/http/client.py @@ -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 diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py index 587b736bbe4d1565f3226ea13c76358496953702..9e617bf788acccb4af715c943c51b52e3ba22d50 100644 --- a/lib/rapi/rlib2.py +++ b/lib/rapi/rlib2.py @@ -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): diff --git a/lib/rpc.py b/lib/rpc.py index a9669fef232985374aaf406983f8b0914d3ed0c9..70dd3128ac955de41256b31a2d64c26631e3a9cc 100644 --- a/lib/rpc.py +++ b/lib/rpc.py @@ -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" diff --git a/lib/utils.py b/lib/utils.py index 6d2552fb56b434d8cd7e97a2c6759a65a084a99d..5aee828376221bcc73219c429027f1f5d5e2cf5a 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -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