Deal with values containing = rather than bailing out on them.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 6 Dec 2007 03:29:32 +0000 (03:29 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 6 Dec 2007 03:29:32 +0000 (03:29 +0000)
source/steps/ReadNodeConfiguration.py

index def8bae..413d49c 100644 (file)
@@ -375,11 +375,7 @@ def __parse_configuration_file( vars, log, file_contents ):
                 continue
 
             # file is setup as name="value" pairs
-            parts= string.split(line,"=")
-            if len(parts) != 2:
-                log.write( "Invalid line %d in configuration file:\n" % line_num )
-                log.write( line + "\n" )
-                return 0
+            parts= string.split(line, "=", 1)
 
             name= string.strip(parts[0])
             value= string.strip(parts[1])