From b9a1338b5ad14d39e100656b58ce9afc13fdb6d0 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Wed, 20 Apr 2016 10:42:53 -0500 Subject: [PATCH] bug 1528: change script to use short hostname for config.host. URLs should still be FQDN --- tools/make_project | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/make_project b/tools/make_project index cf0f70698d..2bd08ff9ae 100755 --- a/tools/make_project +++ b/tools/make_project @@ -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')