From 2c9b6433efc32829e65e74c38f7e32edf3bce4d1 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 6 Sep 2020 14:25:17 -0700 Subject: [PATCH] fix another encoding place --- .ci/ansible_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/ansible_tests.py b/.ci/ansible_tests.py index bcde675e..77541d16 100755 --- a/.ci/ansible_tests.py +++ b/.ci/ansible_tests.py @@ -40,7 +40,8 @@ with ci_lib.Fold('job_setup'): # Don't set -U as that will upgrade Paramiko to a non-2.6 compatible version. # run("pip install -q ansible==%s", ci_lib.ANSIBLE_VERSION) # ansible v2.10 isn't out yet so we're installing from github for now - run('pip install -q {}'.format(ci_lib.ANSIBLE_VERSION)) + # encoding is required for installing ansible 2.10 with pip2, otherwise we get a UnicodeDecode error + run('LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 pip install -q {}'.format(ci_lib.ANSIBLE_VERSION)) # after ansible is installed, install common collections until ansible==2.10 comes out run('ansible-galaxy collection install community.general')