[PATCH 1/2] Don't traceback if we can't find PermHwAddr when looking for slaves (#949341)

Radek Vykydal rvykydal at redhat.com
Mon Apr 8 14:34:36 UTC 2013


---
 pyanaconda/network.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 48cad2b..3021253 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -562,7 +562,8 @@ def get_bond_slaves_from_ifcfgs(master_specs):
                     try:
                         h = nm.nm_device_property(devname, "PermHwAddress")
                     except nm.PropertyNotFoundError:
-                        pass
+                        log.debug("can't get PermHwAddress of devname %s" % devname)
+                        continue
                     if h.upper() == hwaddr.upper():
                         slaves.append(devname)
                         break
-- 
1.7.11.7



More information about the anaconda-patches mailing list