From 91dacc3dbca09e811451944db0949f4a0c3b31d4 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 2 Feb 2009 21:08:56 -0700 Subject: [PATCH] CLI: move node-url -should-end-in-slash code into a common place, so other tools can rely upon it later --- src/allmydata/scripts/cli.py | 2 ++ 1 file changed, 2 insertions(+) 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']: -- 2.45.2