diff --git a/scripts/bootstrap-ansible.sh b/scripts/bootstrap-ansible.sh index 6e7d06ce44..41b1d5a52a 100755 --- a/scripts/bootstrap-ansible.sh +++ b/scripts/bootstrap-ansible.sh @@ -156,7 +156,7 @@ if [ "${SETUP_ARA}" == "true" ]; then fi # Get current code version (this runs at the root of OSA clone) -export CURRENT_OSA_VERSION=$(cd ${OSA_CLONE_DIR}; /opt/ansible-runtime/bin/python setup.py --version) +export CURRENT_OSA_VERSION=$(cd ${OSA_CLONE_DIR}; /opt/ansible-runtime/bin/python -c "from importlib.metadata import version; print(version('openstack-ansible'))") # Ensure that Ansible binaries run from the venv pushd /opt/ansible-runtime/bin