Commit 7c0d6283 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Codestyle fixes: adding a few empty lines

Reviewed-by: ultrotter
parent b2dabfd6
......@@ -43,6 +43,7 @@ from ganeti import objects
from ganeti import opcodes
from ganeti import ssconf
class LogicalUnit(object):
"""Logical Unit base class.
......@@ -2739,6 +2740,7 @@ def _GenerateDRBD8Branch(cfg, primary, secondary, size, names, iv_name):
iv_name=iv_name)
return drbd_dev
def _GenerateDiskTemplate(cfg, template_name,
instance_name, primary_node,
secondary_nodes, disk_sz, swap_sz):
......
......@@ -38,6 +38,7 @@ from ganeti import config
from ganeti import ssconf
from ganeti import logger
class Processor(object):
"""Object which runs OpCodes"""
DISPATCH_TABLE = {
......
......@@ -648,6 +648,7 @@ class OS(ConfigObject):
__bool__ = __nonzero__
class Node(TaggableObject):
"""Config object representing a node."""
__slots__ = TaggableObject.__slots__ + [
......
......@@ -275,12 +275,14 @@ class OpDiagnoseOS(OpCode):
OP_ID = "OP_OS_DIAGNOSE"
__slots__ = []
# Exports opcodes
class OpQueryExports(OpCode):
"""Compute the list of exported images."""
OP_ID = "OP_BACKUP_QUERY"
__slots__ = ["nodes"]
class OpExportInstance(OpCode):
"""Export an instance."""
OP_ID = "OP_BACKUP_EXPORT"
......
......@@ -38,6 +38,7 @@ from ganeti import constants
from ganeti import objects
from ganeti import ssconf
class NodeController:
"""Node-handling class.
......
......@@ -51,6 +51,7 @@ _re_shell_unquoted = re.compile('^[-.,=:/_+@A-Za-z0-9]+$')
debug = False
class RunResult(object):
"""Simple class for holding the result of running external programs.
......
......@@ -27,6 +27,7 @@ from ganeti import cmdlib
from ganeti import opcodes
from ganeti import constants
def PrintExportList(opts, args):
"""Prints a list of all the exported system images.
......
......@@ -39,6 +39,7 @@ _SHUTDOWN_NODES_PRI = "nodes-pri"
_SHUTDOWN_NODES_SEC = "nodes-sec"
_SHUTDOWN_INSTANCES = "instances"
def _ExpandMultiNames(mode, names):
"""Expand the given names using the passed mode.
......@@ -382,6 +383,7 @@ def StartupInstance(opts, args):
SubmitOpCode(op)
return 0
def RebootInstance(opts, args):
"""Reboot an instance
......@@ -407,6 +409,7 @@ def RebootInstance(opts, args):
SubmitOpCode(op)
return 0
def ShutdownInstance(opts, args):
"""Shutdown an instance.
......
......@@ -110,6 +110,7 @@ class ParameterError(Error):
"""
pass
def Usage():
"""Shows program usage information and exits the program."""
......
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