From: Brian Warner Date: Tue, 3 Feb 2009 04:08:56 +0000 (-0700) Subject: CLI: move node-url -should-end-in-slash code into a common place, so other tools... X-Git-Tag: allmydata-tahoe-1.3.0~104 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css/flags?a=commitdiff_plain;h=91dacc3dbca09e811451944db0949f4a0c3b31d4;p=tahoe-lafs%2Ftahoe-lafs.git CLI: move node-url -should-end-in-slash code into a common place, so other tools can rely upon it later --- diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index d81f9ee8..06d2d2a6 100644 --- 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']: