Signed-off-by: Daira Hopwood <daira@jacaranda.org>
import os.path
import codecs
+
+from allmydata.util.assertutil import precondition
+
from allmydata import uri
from allmydata.scripts.common_http import do_http, check_http_error
from allmydata.scripts.common import get_aliases
def add_alias(options):
nodedir = options['node-directory']
alias = options.alias
+ precondition(isinstance(alias, unicode), alias=alias)
cap = options.cap
stdout = options.stdout
stderr = options.stderr
# mkdir+add_alias
nodedir = options['node-directory']
alias = options.alias
+ precondition(isinstance(alias, unicode), alias=alias)
stdout = options.stdout
stderr = options.stderr
if u":" in alias: