[blivet:master 4/7] Add a method to get the uuid of an md array member (#1070095)

Anne Mulhern amulhern at redhat.com
Wed Jun 25 12:47:48 UTC 2014





----- Original Message -----
> From: "Brian C. Lane" <bcl at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Tuesday, June 24, 2014 9:16:13 PM
> Subject: Re: [blivet:master 4/7] Add a method to get the uuid of an md array	member (#1070095)
> 
> On Tue, Jun 24, 2014 at 01:04:25PM -0400, mulhern wrote:
> > Related: rhbz#1070095
> > 
> > Signed-off-by: mulhern <amulhern at redhat.com>
> > ---
> >  blivet/udev.py | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/blivet/udev.py b/blivet/udev.py
> > index a1ff007..126fbf9 100644
> > --- a/blivet/udev.py
> > +++ b/blivet/udev.py
> > @@ -375,8 +375,13 @@ def udev_device_get_md_devices(info):
> >      return int(info["MD_DEVICES"])
> >  
> >  def udev_device_get_md_uuid(info):
> > +    """ The uuid of the array of which this device is a member. """
> >      return info["MD_UUID"]
> >  
> > +def udev_device_get_md_device_uuid(info):
> > +    """ The uuid of the device, not of the array of which it is a member.
> > """
> > +    return info['MD_DEV_UUID']
> > +
> >  def udev_device_get_md_container(info):
> >      return info.get("MD_CONTAINER")
> >  
> > --
> > 1.9.3
> 
> Since you're changing them you may as well make them complete Sphinx
> docstrings.
> 
> --
> Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA
> (PST8PDT)
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 

Done.

- mulhern


More information about the anaconda-patches mailing list