[blivet:f21-branch 01/14] Add a docstring to mdraid.mdexamine
mulhern
amulhern at redhat.com
Mon Sep 29 17:22:48 UTC 2014
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devicelibs/mdraid.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/blivet/devicelibs/mdraid.py b/blivet/devicelibs/mdraid.py
index c71dd84..e757923 100644
--- a/blivet/devicelibs/mdraid.py
+++ b/blivet/devicelibs/mdraid.py
@@ -222,6 +222,12 @@ def mddeactivate(device):
raise MDRaidError("mddeactivate failed for %s: %s" % (device, msg))
def mdexamine(device):
+ """ Run mdadm --examine to obtain information about an array member.
+
+ :param str device: path of the member device
+ :rtype: a dict of strings
+ :returns: a dict containing labels and values extracted from output
+ """
_vars = util.capture_output(["mdadm",
"--examine", "--export", device]).split()
_bvars = util.capture_output(["mdadm",
--
1.9.3
More information about the anaconda-patches
mailing list