@param cfg_file: configuration file path
@rtype: L{ssconf.SimpleConfigWriter}
- @returns: initialized config instance
+ @return: initialized config instance
"""
nodes = {
@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:
@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>,...],
"""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
"""
@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
...
]
- @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()
def POST(self):
"""Create an instance.
- @returns: a job id
+ @return: a job id
"""
if not isinstance(self.req.request_body, dict):
"""Call nodes and return results.
@rtype: list
- @returns: List of RPC results
+ @return: List of RPC results
"""
assert _http_manager, "RPC module not intialized"
@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