get config from file.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Thu, 27 Mar 2008 20:34:26 +0000 (20:34 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Thu, 27 Mar 2008 20:34:26 +0000 (20:34 +0000)
codemux.py

index 0ad9c81..a345a48 100644 (file)
@@ -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