]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
CLI: move node-url -should-end-in-slash code into a common place, so other tools...
authorBrian Warner <warner@allmydata.com>
Tue, 3 Feb 2009 04:08:56 +0000 (21:08 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 3 Feb 2009 04:08:56 +0000 (21:08 -0700)
src/allmydata/scripts/cli.py

index d81f9ee870b4f0502dae27d81bc8047a1870b2de..06d2d2a611b0fdc9a21512efca19c9cc88d43b2c 100644 (file)
@@ -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']: