fixed installing into python2 container by specifying encoding

pull/715/head
Steven Robertson 4 years ago
parent 371f0a6657
commit 140406342b

@ -13,7 +13,8 @@ batches = [
'-r tests/ansible/requirements.txt', '-r tests/ansible/requirements.txt',
# 'pip install -q ansible=={0}'.format(ci_lib.ANSIBLE_VERSION) # 'pip install -q ansible=={0}'.format(ci_lib.ANSIBLE_VERSION)
# ansible v2.10 isn't out yet so we're installing from github for now # ansible v2.10 isn't out yet so we're installing from github for now
'pip install -q {}'.format(ci_lib.ANSIBLE_VERSION) # encoding is required for installing ansible 2.10 with pip2, otherwise we get a UnicodeDecode error
'LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 pip install -q {}'.format(ci_lib.ANSIBLE_VERSION)
] ]
] ]
@ -25,4 +26,4 @@ batches.extend(
ci_lib.run_batches(batches) ci_lib.run_batches(batches)
# after ansible is installed, install common collections until ansible==2.10 comes out # after ansible is installed, install common collections until ansible==2.10 comes out
ci_lib.run('ansible-galaxy collection install community.general') ci_lib.run('ansible-galaxy collection install community.general')

@ -102,7 +102,7 @@ jobs:
#STRATEGY: linear #STRATEGY: linear
Ansible_210_27: Ansible_210_27:
python.version: '2.7.18' python.version: '2.7'
MODE: ansible MODE: ansible
VER: git+https://github.com/ansible/ansible.git@v2.10.0 VER: git+https://github.com/ansible/ansible.git@v2.10.0

Loading…
Cancel
Save