File koan_old_cobbler_compat.diff of Package cobbler

--- koan/qcreate.py
+++ koan/qcreate.py	2012/05/16 09:32:22
@@ -187,7 +187,7 @@
         for iname in interfaces:
             intf = profile_data["interfaces"][iname]
 
-            if intf["interface_type"] in ("master","bond","bridge") or vlanpattern.match(iname) or iname.find(":") != -1:
+            if (intf.has_key("interface_type") and intf["interface_type"] in ("master","bond","bridge")) or vlanpattern.match(iname) or iname.find(":") != -1:
                 continue
 
             mac = intf["mac_address"]
openSUSE Build Service is sponsored by