From: Brian Warner Date: Thu, 11 Oct 2007 09:19:59 +0000 (-0700) Subject: create_node.py: allow config['webport'] to be missing, for check_memory X-Git-Tag: allmydata-tahoe-0.6.1~44 X-Git-Url: https://git.rkrishnan.org/uri/URI:DIR2:%5B%5E?a=commitdiff_plain;h=a76898244b55f75de84550778a842dc3b07efda0;p=tahoe-lafs%2Ftahoe-lafs.git create_node.py: allow config['webport'] to be missing, for check_memory --- diff --git a/src/allmydata/scripts/create_node.py b/src/allmydata/scripts/create_node.py index af20957c..aab1eaba 100644 --- a/src/allmydata/scripts/create_node.py +++ b/src/allmydata/scripts/create_node.py @@ -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()