From: Faiyaz Ahmed Date: Thu, 3 Apr 2008 22:15:19 +0000 (+0000) Subject: Fix config file parsing. Blank lines were messing thigns up. X-Git-Tag: NodeManager-1.8-0~60 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5ecb69227f3d08d10d9dec5b309a2f41bba1a205;p=nodemanager.git Fix config file parsing. Blank lines were messing thigns up. --- diff --git a/codemux.py b/codemux.py index fa54d4e..1d907f7 100644 --- a/codemux.py +++ b/codemux.py @@ -102,7 +102,9 @@ def parseConf(conf = CODEMUXCONF): try: f = open(conf) for line in f.readlines(): - if line.startswith("#") or (len(line.split()) > 4): + if line.startswith("#") \ + or (len(line.split()) > 4) \ + or (len(line.split()) < 3): continue (host, slice, port) = line.split()[:3] logger.log("codemux: found %s in conf" % slice, 2)