From: Faiyaz Ahmed Date: Thu, 3 Apr 2008 22:15:41 +0000 (+0000) Subject: Fix config file parsing. Blank lines were messing thigns up. X-Git-Tag: NodeManager-1.7-5~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a185ca88c75c3c2e2d793a25988b1e5fd359ad1b;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)