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:
a7de479
)
CLI: move node-url -should-end-in-slash code into a common place, so other tools...
author
Brian Warner
<warner@allmydata.com>
Tue, 3 Feb 2009 04:08:56 +0000
(21:08 -0700)
committer
Brian Warner
<warner@allmydata.com>
Tue, 3 Feb 2009 04:08:56 +0000
(21:08 -0700)
src/allmydata/scripts/cli.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/cli.py
b/src/allmydata/scripts/cli.py
index d81f9ee870b4f0502dae27d81bc8047a1870b2de..06d2d2a611b0fdc9a21512efca19c9cc88d43b2c 100644
(file)
--- a/
src/allmydata/scripts/cli.py
+++ b/
src/allmydata/scripts/cli.py
@@
-39,6
+39,8
@@
class VDriveOptions(BaseOptions, usage.Options):
else:
node_url_file = os.path.join(self['node-directory'], "node.url")
self['node-url'] = open(node_url_file, "r").read().strip()
+ if self['node-url'][-1] != "/":
+ self['node-url'] += "/"
aliases = get_aliases(self['node-directory'])
if self['dir-cap']: