projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b406f3
)
create_node.py: allow config['webport'] to be missing, for check_memory
author
Brian Warner
<warner@lothar.com>
Thu, 11 Oct 2007 09:19:59 +0000
(
02:19
-0700)
committer
Brian Warner
<warner@lothar.com>
Thu, 11 Oct 2007 09:19:59 +0000
(
02:19
-0700)
src/allmydata/scripts/create_node.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/create_node.py
b/src/allmydata/scripts/create_node.py
index af20957ca97079babc1ef48b2ed5b93a57219bd7..aab1eabada6d237fa75aa794bc34d75c1cb021a0 100644
(file)
--- 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()