From 343e736e6292eacb4d9c26d8d46bdfa58bbe70bd Mon Sep 17 00:00:00 2001 From: Allen Gao Date: Fri, 5 Feb 2016 16:46:13 +0800 Subject: [PATCH] Fix the ugly base directory path Remove the '..' in the path like: /home/jenkins/workspace/gate-kolla-dsvm-deploy-centos-binary/tools/../ansible/inventory/all-in-one TrivialFix Change-Id: I80724a9e876ed1826c65e08b55cfa08124d70eb9 --- tools/kolla-ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 73d7316f57..fc17f1495d 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -10,7 +10,7 @@ function find_base_dir { elif [[ ${dir_name} == "/usr/local/bin" ]]; then BASEDIR=/usr/local/share/kolla else - BASEDIR="${dir_name}/.." + BASEDIR="$(dirname ${dir_name})" fi }