[blivet:master 05/13] Document udev.device_get_uuid() method.

mulhern amulhern at redhat.com
Wed Jul 9 17:16:19 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 4c2055f..0eddf4d 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -207,7 +207,12 @@ def device_get_format(udev_info):
     return udev_info.get("ID_FS_TYPE")
 
 def 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