From dd6df534cf109422103763953bd424a33ebaae9a Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 6 Jan 2016 15:31:00 +0800 Subject: [PATCH] make the kolla-ansible python3 compatible * remove unused sys * user print() for python3 compatible TrivalFix Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374 --- tools/kolla-ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 7543b85442..99ee50d0c3 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