Skip to content

Commit 55823b5

Browse files
committed
fix: Use python3 instead of hardcoded python3.10
Replace hardcoded python3.10 with python3 to support systems that don't have Python 3.10 installed (e.g., Ubuntu 24.04 which ships with Python 3.12). This change maintains backward compatibility while enabling builds on newer systems. Ansible 9.2.0 supports Python 3.8+, so any python3 version will work. Fixes: ansible-galaxy.sh failing on Ubuntu 24.04 Related: Python version fallback in global-jjb lf-env.sh Change-Id: Ib18cf879a498a1504ff9dd25fb620ca18a0e0ed1 Signed-off-by: Anil Belur <[email protected]>
1 parent 040655a commit 55823b5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ansible-galaxy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ wget -q https://raw.githubusercontent.com/lfit/releng-global-jjb/master/jenkins-
1919
# shellcheck disable=SC1090
2020
. ~/lf-env.sh
2121

22-
lf-activate-venv --python python3.10 --venv-file "/tmp/.ansible_venv" \
22+
lf-activate-venv --python python3 --venv-file "/tmp/.ansible_venv" \
2323
ansible~=9.2.0
2424

2525
ansible_roles_path=${1:-.galaxy}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixed ansible-galaxy.sh script failing on Ubuntu 24.04 with error
5+
``python3.10: command not found``. The script now uses the system's
6+
default Python 3 instead of requiring a specific version.

0 commit comments

Comments
 (0)