bug 1528: change script to use short hostname for config.host. URLs should still be FQDN

This commit is contained in:
Shawn Kwang 2016-04-20 10:42:53 -05:00
parent 3c879fb96a
commit b9a1338b5a
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ def defopt(name, v, isdir=True):
defopt('project_host' , NODENAME, isdir=False)
defopt('url_base' , 'http://%s/'%options.project_host)
# strip project_host to get short hostname
options.project_host=options.project_host.split('.')[0]
if not isurl(options.url_base):
syntax_error('url_base needs to be an URL')