- use "" if dns2 is not specified
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 2 Nov 2006 18:04:19 +0000 (18:04 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 2 Nov 2006 18:04:19 +0000 (18:04 +0000)
PLC/Methods/AdmGenerateNodeConfFile.py

index a2c7dbd..c18dacc 100644 (file)
@@ -90,7 +90,7 @@ class AdmGenerateNodeConfFile(Method):
             file += 'IP_NETADDR="%s"\n' % primary['network']
             file += 'IP_BROADCASTADDR="%s"\n' % primary['broadcast']
             file += 'IP_DNS1="%s"\n' % primary['dns1']
-            file += 'IP_DNS2="%s"\n' % primary['dns2']
+            file += 'IP_DNS2="%s"\n' % (primary['dns2'] or "")
 
         file += 'HOST_NAME="%s"\n' % host
         file += 'DOMAIN_NAME="%s"\n' % domain