diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2024-04-17 14:32:38 +0200 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2024-04-18 09:19:16 +0000 |
| commit | fa2591d327dcf128c0025580bb0c97e43013e861 (patch) | |
| tree | 3bfd6252462832d030acb5aca0bf3f5d127d4b24 /docker/macros.j2 | |
| parent | 081590b63b6f2c4935d89915509f8240219c0361 (diff) | |
| download | kolla-fa2591d327dcf128c0025580bb0c97e43013e861.tar.gz kolla-fa2591d327dcf128c0025580bb0c97e43013e861.zip | |
kolla-toolbox: Use py311 on rpm distros
ansible-core 2.16 requires py3.10+ on the host running
ansible-playbook - let's use Python 3.11 on RPM distros
to have the same version of ansible-core used on all
distributions.
Change-Id: I2caf2c972cd0283889fadde01bdd6a53e5f66ed9
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index 257c7b58e..2f1aaf81e 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -32,9 +32,9 @@ {% endif %} {%- endmacro %} -{% macro install_pip(packages, constraints = true) %} +{% macro install_pip(packages, constraints=true, python_version='3') %} {%- if packages is sequence and packages|length > 0 -%} - python3 -m pip --no-cache-dir install --upgrade{{ ' ' }} + python{{ python_version }} -m pip --no-cache-dir install --upgrade{{ ' ' }} {%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%} {{ packages | join(' ') }} {%- else -%} |
