From beb502ac18d6ab1907d4475cb3905d8191ef2713 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 2 Jun 2008 17:55:54 -0700 Subject: [PATCH] CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir-cap option --- src/allmydata/scripts/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index 8e0b5fc6..ccbb78be 100644 --- a/src/allmydata/scripts/cli.py +++ b/src/allmydata/scripts/cli.py @@ -321,7 +321,8 @@ def webopen(config, stdout, stderr): nodeurl = config['node-url'] if nodeurl[-1] != "/": nodeurl += "/" - url = nodeurl + "uri/%s/" % urllib.quote(config['dir-cap']) + root_cap = config.aliases["tahoe"] + url = nodeurl + "uri/%s/" % urllib.quote(root_cap) if config['vdrive_pathname']: url += urllib.quote(config['vdrive_pathname']) webbrowser.open(url) -- 2.45.2