scripts: bootstrap-ansible.sh: Do not error on 'alternatives' command
update-alternatives exits with error if there are no multiple
providers for 'pip'. In that case, we should ignore the error since the
correct 'pip' is already set.
Change-Id: Ife27404688e6996fe8a2774c2644743701854339
(cherry picked from commit 4e7e1c5104
)
This commit is contained in:
parent
4d43b38950
commit
4c8d0f6741
@ -91,7 +91,7 @@ case ${DISTRO_ID} in
|
||||
# such we are using python2
|
||||
# See https://github.com/ansible/ansible/issues/24180
|
||||
PYTHON_EXEC_PATH="/usr/bin/python2"
|
||||
alternatives --set pip /usr/bin/pip2.7
|
||||
alternatives --set pip /usr/bin/pip2.7 || true
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user