Commit 3bc145d8 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

Fixed typos, formatting, etc and added a comment



This patch only touches comments and man pages.
Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 3c29e49d
...@@ -1058,7 +1058,7 @@ class BaseDRBD(BlockDev): # pylint: disable=W0223 ...@@ -1058,7 +1058,7 @@ class BaseDRBD(BlockDev): # pylint: disable=W0223
def _CheckMetaSize(meta_device): def _CheckMetaSize(meta_device):
"""Check if the given meta device looks like a valid one. """Check if the given meta device looks like a valid one.
This currently only check the size, which must be around This currently only checks the size, which must be around
128MiB. 128MiB.
""" """
...@@ -1197,7 +1197,7 @@ class DRBD8(BaseDRBD): ...@@ -1197,7 +1197,7 @@ class DRBD8(BaseDRBD):
def _GetShowParser(cls): def _GetShowParser(cls):
"""Return a parser for `drbd show` output. """Return a parser for `drbd show` output.
This will either create or return an already-create parser for the This will either create or return an already-created parser for the
output of the command `drbd show`. output of the command `drbd show`.
""" """
......
...@@ -936,6 +936,7 @@ class KVMHypervisor(hv_base.BaseHypervisor): ...@@ -936,6 +936,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
try: try:
info = self.GetInstanceInfo(name) info = self.GetInstanceInfo(name)
except errors.HypervisorError: except errors.HypervisorError:
# Ignore exceptions due to instances being shut down
continue continue
if info: if info:
data.append(info) data.append(info)
......
...@@ -654,7 +654,7 @@ The ``continue`` option will let the watcher continue. ...@@ -654,7 +654,7 @@ The ``continue`` option will let the watcher continue.
The ``info`` option shows whether the watcher is currently paused. The ``info`` option shows whether the watcher is currently paused.
redist-conf REDIST-CONF
~~~~~~~~~~~ ~~~~~~~~~~~
**redist-conf** [\--submit] **redist-conf** [\--submit]
......
...@@ -1250,7 +1250,7 @@ REPLACE-DISKS ...@@ -1250,7 +1250,7 @@ REPLACE-DISKS
[\--disks *idx*] {*instance*} [\--disks *idx*] {*instance*}
**replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy] **replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy]
{\--iallocator *name* \| \--node *node* } {*instance*} {{-I\|\--iallocator} *name* \| \--node *node* } {*instance*}
**replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy] **replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy]
{\--auto} {*instance*} {\--auto} {*instance*}
......
...@@ -513,7 +513,7 @@ def _TestInstanceDiskFailure(instance, node, node2, onmaster): ...@@ -513,7 +513,7 @@ def _TestInstanceDiskFailure(instance, node, node2, onmaster):
AssertCommand(" && ".join(cmds), node=[node2, node][int(onmaster)]) AssertCommand(" && ".join(cmds), node=[node2, node][int(onmaster)])
print qa_utils.FormatInfo("Write to disks and give some time to notice" print qa_utils.FormatInfo("Write to disks and give some time to notice"
" to notice the problem") " the problem")
cmds = [] cmds = []
for disk in devpath: for disk in devpath:
cmds.append(sq(["dd", "count=1", "bs=512", "conv=notrunc", cmds.append(sq(["dd", "count=1", "bs=512", "conv=notrunc",
......
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