From bf8d3ce306783f520694ac24980450b51bca3242 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Thu, 27 Mar 2008 20:34:26 +0000 Subject: [PATCH] get config from file. --- codemux.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codemux.py b/codemux.py index 0ad9c81..a345a48 100644 --- a/codemux.py +++ b/codemux.py @@ -7,6 +7,7 @@ import logger import os import vserver from sets import Set +from config import Config CODEMUXCONF="/etc/codemux/codemux.conf" @@ -75,7 +76,7 @@ def writeConf(slivers, conf = CODEMUXCONF): '''Write conf with default entry up top. Write lower order domain names first. Restart service.''' f = open(conf, "w") # This needs to be the first entry... - f.write("* root 1080\n") + f.write("* root %s\n", Config().PLC_PLANETFLOW_HOST) # Sort items for like domains for slice in sortDomains(slivers): if slice == "root": continue -- 2.47.0