Merge "Fix OSA_VERSION during upgrades"
This commit is contained in:
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["pbr>=6.1.1"]
|
||||
build-backend = "pbr.build"
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
OpenStack-Ansible and venv version detection is fixed for environments
|
||||
which were upgraded from pre-Flamingo releases.
|
||||
@@ -135,7 +135,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 -c "from importlib.metadata import version; print(version('openstack-ansible'))")
|
||||
export CURRENT_OSA_VERSION=$(cd /tmp; /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
|
||||
|
||||
Reference in New Issue
Block a user