[blivet-master/rhel7] return empty set when no matching fcoe nic (#1067159)

Vratislav Podzimek vpodzime at redhat.com
Fri Feb 21 07:13:39 UTC 2014


On Thu, 2014-02-20 at 10:20 -0800, Brian C. Lane wrote:
> When there is no matching nic (or no nics at all) return an empty set
> from dracutSetupArgs.
> 
> Resolves: rhbz#1067159
> ---
>  blivet/devices.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/blivet/devices.py b/blivet/devices.py
> index a607c1b..3cc5c18 100644
> --- a/blivet/devices.py
> +++ b/blivet/devices.py
> @@ -4081,6 +4081,8 @@ class FcoeDiskDevice(DiskDevice, NetworkStorageDevice):
>          for nic, dcb, auto_vlan in fcoe().nics:
>              if nic == self.nic:
>                  break
> +        else:
> +            return set()
>  
>          if dcb:
>              dcbOpt = "dcb"
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list