Commit 2f8598a5 authored by Alexander Schreiber's avatar Alexander Schreiber
Browse files

Trivial typing fixups.

Reviewed-by: iustinp
parent b50f022f
...@@ -150,8 +150,7 @@ def LeaveCluster(): ...@@ -150,8 +150,7 @@ def LeaveCluster():
def GetNodeInfo(vgname): def GetNodeInfo(vgname):
""" gives back a hash with different informations """Gives back a hash with different informations about the node.
about the node
Returns: Returns:
{ 'vg_size' : xxx, 'vg_free' : xxx, 'memory_domain0': xxx, { 'vg_size' : xxx, 'vg_free' : xxx, 'memory_domain0': xxx,
...@@ -238,7 +237,7 @@ def GetVolumeList(vg_name): ...@@ -238,7 +237,7 @@ def GetVolumeList(vg_name):
def ListVolumeGroups(): def ListVolumeGroups():
"""List the volume groups and their size """List the volume groups and their size.
Returns: Returns:
Dictionary with keys volume name and values the size of the volume Dictionary with keys volume name and values the size of the volume
...@@ -277,7 +276,7 @@ def NodeVolumes(): ...@@ -277,7 +276,7 @@ def NodeVolumes():
def BridgesExist(bridges_list): def BridgesExist(bridges_list):
"""Check if a list of bridges exist on the current node """Check if a list of bridges exist on the current node.
Returns: Returns:
True if all of them exist, false otherwise True if all of them exist, false otherwise
...@@ -291,7 +290,7 @@ def BridgesExist(bridges_list): ...@@ -291,7 +290,7 @@ def BridgesExist(bridges_list):
def GetInstanceList(): def GetInstanceList():
""" provides a list of instances """Provides a list of instances.
Returns: Returns:
A list of all running instances on the current node A list of all running instances on the current node
...@@ -309,8 +308,7 @@ def GetInstanceList(): ...@@ -309,8 +308,7 @@ def GetInstanceList():
def GetInstanceInfo(instance): def GetInstanceInfo(instance):
""" gives back the informations about an instance """Gives back the informations about an instance as a dictionary.
as a dictonary
Args: Args:
instance: name of the instance (ex. instance1.example.com) instance: name of the instance (ex. instance1.example.com)
...@@ -367,7 +365,7 @@ def GetAllInstancesInfo(): ...@@ -367,7 +365,7 @@ def GetAllInstancesInfo():
def AddOSToInstance(instance, os_disk, swap_disk): def AddOSToInstance(instance, os_disk, swap_disk):
"""Add an os to an instance. """Add an OS to an instance.
Args: Args:
instance: the instance object instance: the instance object
...@@ -914,9 +912,9 @@ def _OSSearch(name, search_path=None): ...@@ -914,9 +912,9 @@ def _OSSearch(name, search_path=None):
return None return None
def _OSOndiskVersion(name, os_dir): def _OSOndiskVersion(name, os_dir):
"""Compute and return the api version of a given OS. """Compute and return the API version of a given OS.
This function will try to read the api version of the os given by This function will try to read the API version of the os given by
the 'name' parameter and residing in the 'os_dir' directory. the 'name' parameter and residing in the 'os_dir' directory.
Return value will be either an integer denoting the version or None in the Return value will be either an integer denoting the version or None in the
......
...@@ -187,7 +187,7 @@ class MirrorContextFactory: ...@@ -187,7 +187,7 @@ class MirrorContextFactory:
class Client: class Client:
"""RPC Client class. """RPC Client class.
This class, given a (remote) ethod name, a list of parameters and a This class, given a (remote) method name, a list of parameters and a
list of nodes, will contact (in parallel) all nodes, and return a list of nodes, will contact (in parallel) all nodes, and return a
dict of results (key: node name, value: result). dict of results (key: node name, value: result).
...@@ -288,7 +288,7 @@ def call_bridges_exist(node, bridges_list): ...@@ -288,7 +288,7 @@ def call_bridges_exist(node, bridges_list):
def call_instance_start(node, instance, extra_args): def call_instance_start(node, instance, extra_args):
"""Stars an instance. """Starts an instance.
This is a single-node call. This is a single-node call.
......
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