Re: [PATCH 07/19] Add udev accessor for ID_MODEL_FROM_DATABASE/ID_MODEL.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/storage/udev.py b/storage/udev.py
> index 8f1f78f..42b27e6 100644
> --- a/storage/udev.py
> +++ b/storage/udev.py
> @@ -276,6 +276,10 @@ def udev_device_get_vendor(udev_info):
>      """ Get the vendor of the device as reported by udev. """
>      return udev_info.get("ID_VENDOR_FROM_DATABASE", udev_info.get("ID_VENDOR"))
>  
> +def udev_device_get_model(udev_info):
> +    """ Get the model of the device as reported by udev. """
> +    return udev_info.get("ID_MODEL_FROM_DATABASE", udev_info.get("ID_MODEL"))
> +
>  def udev_device_get_bus(udev_info):
>      """ Get the bus a device is connected to the system by. """
>      return udev_info.get("ID_BUS", "").upper()

Looks fine to me.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux