Codestyle fixes: adding a few empty lines
authorMichael Hanselmann <hansmi@google.com>
Wed, 5 Mar 2008 14:39:41 +0000 (14:39 +0000)
committerMichael Hanselmann <hansmi@google.com>
Wed, 5 Mar 2008 14:39:41 +0000 (14:39 +0000)
Reviewed-by: ultrotter

lib/cmdlib.py
lib/mcpu.py
lib/objects.py
lib/opcodes.py
lib/rpc.py
lib/utils.py
scripts/gnt-backup
scripts/gnt-instance
tools/lvmstrap

index 1c5356e..5c1be18 100644 (file)
@@ -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):
index cd1a3a9..c5bcc8d 100644 (file)
@@ -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 = {
index 6dd5141..b782c26 100644 (file)
@@ -648,6 +648,7 @@ class OS(ConfigObject):
 
   __bool__ = __nonzero__
 
+
 class Node(TaggableObject):
   """Config object representing a node."""
   __slots__ = TaggableObject.__slots__ + [
index 87bcf05..93ea6ed 100644 (file)
@@ -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"
index 0e4b5dc..51b1d2e 100644 (file)
@@ -38,6 +38,7 @@ from ganeti import constants
 from ganeti import objects
 from ganeti import ssconf
 
+
 class NodeController:
   """Node-handling class.
 
index 6cbd268..3319e71 100644 (file)
@@ -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.
 
index dc456e1..a05e1ff 100755 (executable)
@@ -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.
 
index d5661d3..7d3aa94 100755 (executable)
@@ -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.
 
index 153de88..8fbe1fb 100755 (executable)
@@ -110,6 +110,7 @@ class ParameterError(Error):
   """
   pass
 
+
 def Usage():
   """Shows program usage information and exits the program."""