make the kolla-ansible python3 compatible
* remove unused sys * user print() for python3 compatible TrivalFix Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374
This commit is contained in:
parent
8123dbdc62
commit
dd6df534cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user