mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-02 04:34:19 +00:00
create_node.py: allow config['webport'] to be missing, for check_memory
This commit is contained in:
parent
1b406f3c32
commit
a76898244b
@ -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 = open(os.path.join(basedir, "client.tac"), "w")
|
||||||
f.write(client_tac)
|
f.write(client_tac)
|
||||||
f.close()
|
f.close()
|
||||||
if config['webport'].lower() != "none":
|
if config.get('webport', "none").lower() != "none":
|
||||||
f = open(os.path.join(basedir, "webport"), "w")
|
f = open(os.path.join(basedir, "webport"), "w")
|
||||||
f.write(config['webport'] + "\n")
|
f.write(config['webport'] + "\n")
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user