Blame system-config-network-1.5.99-NoneIPLen.patch

4e4adc4
diff -up system-config-network-1.5.99/src/netconfpkg/NCDevice.py.NoneIPLen system-config-network-1.5.99/src/netconfpkg/NCDevice.py
4e4adc4
--- system-config-network-1.5.99/src/netconfpkg/NCDevice.py.NoneIPLen	2009-08-12 16:28:33.000000000 +0200
4e4adc4
+++ system-config-network-1.5.99/src/netconfpkg/NCDevice.py	2009-12-07 11:05:08.000000000 +0100
4e4adc4
@@ -390,10 +390,10 @@ class Device(Device_base):
4e4adc4
         conf.fsf()
4e4adc4
 
4e4adc4
         if self.BootProto == None:
4e4adc4
-            if len(self.IP):
4e4adc4
+            if self.IP:
4e4adc4
                 self.BootProto = "none"
4e4adc4
             else:
4e4adc4
-                self.BootProto = 'dhcp'                
4e4adc4
+                self.BootProto = 'dhcp'
4e4adc4
 
4e4adc4
         if self.BootProto:
4e4adc4
             self.BootProto = self.BootProto.lower()