Simpify selection of the python interpreter.

We only support python3 so remove the logic supporting python2

Change-Id: I2bfbd657bf7ed5b042c3640586d8ae80c5b85136
This commit is contained in:
Jonathan Rosser 2022-02-02 04:40:51 -05:00
parent b996d935d6
commit 1c427078c2
1 changed files with 1 additions and 1 deletions

View File

@ -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__)'"