[PATCH 4/6] Update md name when lookup relied on UUID.

Anne Mulhern amulhern at redhat.com
Thu Aug 7 14:58:12 UTC 2014





----- Original Message -----
> From: "David Lehman" <dlehman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Monday, August 4, 2014 5:15:00 PM
> Subject: [PATCH 4/6] Update md name when lookup relied on UUID.
> 
> ---
>  blivet/devicetree.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/blivet/devicetree.py b/blivet/devicetree.py
> index ccb7f57..4a483b6 100644
> --- a/blivet/devicetree.py
> +++ b/blivet/devicetree.py
> @@ -896,6 +896,9 @@ class DeviceTree(object):
>                  log.warning("failed to obtain uuid for mdraid device")
>              else:
>                  device = self.getDeviceByUuid(uuid,
>                  incomplete=flags.allow_degraded_mdraid)
> +                if device:
> +                    # update the device instance with the real name
> +                    device.name = name
>  
>          # if we get here, we found all of the slave devices and
>          # something must be wrong -- if all of the slaves are in
> --
> 1.9.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 

Would still be nice if name were set at method level, after lookup
had succeeded, rather than inside that fairly deeply nested block.

- mulhern
- mulhern


More information about the anaconda-patches mailing list