Commit 34366a1
committed
<fix>[conf]: use absolute path for ansible version check during upgrade
upgrade from py2 venv to py3 venv, ensure_python3_venv recreates
an empty venv with no ansible binary. The bare 'ansible --version'
falls back to /usr/bin/ansible old wrapper which uses relative path,
causing infinite recursion on kylin arm environments.
Use absolute path $SYS_VIRENV_PATH/bin/ansible with existence check
to avoid hitting the old wrapper.
Resolves: ZSTAC-82619
Change-Id: I666461626876787762626b6f6261776d767672621 parent 0f4c337 commit 34366a1
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 97 | + | |
| 98 | + | |
104 | 99 | | |
105 | 100 | | |
106 | 101 | | |
| |||
0 commit comments