Resolves: rhbz#1070095
Surround with a try/catch block because the code that obtains the uuid for the array, just above this code, uses a try/catch block, and I believe that the likelihood that the device uuid is unavailable is the same as the likelihood that the array uuid is unavailable.
Signed-off-by: mulhern amulhern@redhat.com --- blivet/devicetree.py | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py index 591583f..8d960f5 100644 --- a/blivet/devicetree.py +++ b/blivet/devicetree.py @@ -1827,6 +1827,13 @@ class DeviceTree(object): kwargs["mdUuid"] = udev.udev_device_get_md_uuid(info) except KeyError: log.warning("mdraid member %s has no md uuid", name) + + # reset the uuid using information obtained from mdexamine + try: + kwargs["uuid"] = udev.udev_device_get_md_device_uuid(info) + except KeyError: + log.warning("mdraid member %s has no device uuid", name) + kwargs["biosraid"] = udev.udev_device_is_biosraid_member(info) elif format_type == "LVM2_member": # lvm