From: Daniel Hokka Zakrisson Date: Thu, 6 Dec 2007 03:29:32 +0000 (+0000) Subject: Deal with values containing = rather than bailing out on them. X-Git-Tag: bootmanager-3.2-2~9 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=1f29e17192606e958af44208067d4a198b059a55 Deal with values containing = rather than bailing out on them. --- diff --git a/source/steps/ReadNodeConfiguration.py b/source/steps/ReadNodeConfiguration.py index def8bae..413d49c 100644 --- a/source/steps/ReadNodeConfiguration.py +++ b/source/steps/ReadNodeConfiguration.py @@ -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])