[blivet:master 03/11] Document udev_device_get_uuid() method.
mulhern
amulhern at redhat.com
Thu Jul 3 15:19:42 UTC 2014
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/udev.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/blivet/udev.py b/blivet/udev.py
index 09001e4..8b8c04a 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -208,7 +208,12 @@ def udev_device_get_format(udev_info):
return udev_info.get("ID_FS_TYPE")
def udev_device_get_uuid(udev_info):
- """ Get the UUID from the device's format as reported by udev. """
+ """ Get the UUID from the device's format as reported by udev.
+
+ :param dict udev_info: dictionary of name-value pairs as strings
+ :returns: a UUID or None
+ :rtype: str or NoneType
+ """
md_uuid = udev_info.get("MD_UUID", '')
uuid = udev_info.get("ID_FS_UUID", '')
# we don't want to return the array's uuid as a member's uuid
--
1.9.3
More information about the anaconda-patches
mailing list