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

Brian C. Lane bcl at redhat.com
Thu Feb 20 18:20:58 UTC 2014


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"
-- 
1.8.5.3



More information about the anaconda-patches mailing list