]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
create_node.py: allow config['webport'] to be missing, for check_memory
authorBrian Warner <warner@lothar.com>
Thu, 11 Oct 2007 09:19:59 +0000 (02:19 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 11 Oct 2007 09:19:59 +0000 (02:19 -0700)
src/allmydata/scripts/create_node.py

index af20957ca97079babc1ef48b2ed5b93a57219bd7..aab1eabada6d237fa75aa794bc34d75c1cb021a0 100644 (file)
@@ -52,7 +52,7 @@ def create_client(basedir, config, out=sys.stdout, err=sys.stderr):
     f = open(os.path.join(basedir, "client.tac"), "w")
     f.write(client_tac)
     f.close()
-    if config['webport'].lower() != "none":
+    if config.get('webport', "none").lower() != "none":
         f = open(os.path.join(basedir, "webport"), "w")
         f.write(config['webport'] + "\n")
         f.close()