Simpify selection of the python interpreter.
We only support python3 so remove the logic supporting python2 Change-Id: I2bfbd657bf7ed5b042c3640586d8ae80c5b85136
This commit is contained in:
parent
b996d935d6
commit
1c427078c2
@ -24,7 +24,7 @@
|
||||
- name: Set python venvs details
|
||||
set_fact:
|
||||
venv_python_lib_folder: "{{ python_venv_details.files[0].path }}"
|
||||
ceph_python_interp: "/usr/bin/{{ ((python_venv_details.files[0].path | basename)[:-2] == 'python3') | ternary('python3', 'python2') }}"
|
||||
ceph_python_interp: "/usr/bin/python3"
|
||||
|
||||
- name: Register rados module path
|
||||
command: "{{ ceph_python_interp }} -c 'import rados; print(rados.__file__)'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user