aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Gao <wanlong.gao@easystack.cn>2016-02-05 16:46:13 +0800
committerAllen Gao <wanlong.gao@easystack.cn>2016-02-05 16:59:01 +0800
commit343e736e6292eacb4d9c26d8d46bdfa58bbe70bd (patch)
treed3cde6be0e7f7d001fa2e0e3bf1a4c026eaac3e6
parent16630340c74163b8d9ba5bf370a458493fb85f0f (diff)
downloadkolla-343e736e6292eacb4d9c26d8d46bdfa58bbe70bd.tar.gz
kolla-343e736e6292eacb4d9c26d8d46bdfa58bbe70bd.zip
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
-rwxr-xr-xtools/kolla-ansible2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 73d7316f5..fc17f1495 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
}