aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2016-01-06 15:31:00 +0800
committerJeffrey Zhang <zhang.lei.fly@gmail.com>2016-01-06 15:31:00 +0800
commitdd6df534cf109422103763953bd424a33ebaae9a (patch)
tree808a3764702c3c77e2fd95057b1504712426cdb3
parent8123dbdc62dba94c595aedab03901be273da009e (diff)
downloadkolla-dd6df534cf109422103763953bd424a33ebaae9a.tar.gz
kolla-dd6df534cf109422103763953bd424a33ebaae9a.zip
make the kolla-ansible python3 compatible
* remove unused sys * user print() for python3 compatible TrivalFix Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374
-rwxr-xr-xtools/kolla-ansible2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 7543b8544..99ee50d0c 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -3,7 +3,7 @@
# This script can be used to interact with kolla via ansible.
function find_base_dir {
- local real_path=$(python -c "import os,sys;print os.path.realpath('$0')")
+ local real_path=$(python -c "import os;print(os.path.realpath('$0'))")
local dir_name="$(dirname "$real_path")"
if [[ ${dir_name} == "/usr/bin" ]]; then
BASEDIR=/usr/share/kolla