Perserve env variables

This patch set adds in -E flag for ``sudo pip install`` so
any environment variable is preserved for the install.  This
allows for some proxy-related variables such as ``http_proxy``
to pass through for pip.

This mirrors the change in [0].

[0] https://review.openstack.org/#/c/531270/1

Change-Id: Ib513fce862f31d784634645ac6b038c6a35f4cd6
This commit is contained in:
lamt 2018-01-05 08:55:51 -06:00
parent 17b13c42d7
commit 9c31548c9b

@ -52,10 +52,10 @@ function ansible_install {
jq
fi
sudo -H pip install --no-cache-dir --upgrade pip
sudo -H pip install --no-cache-dir --upgrade setuptools
sudo -H pip install --no-cache-dir --upgrade pyopenssl
sudo -H pip install --no-cache-dir \
sudo -H -E pip install --no-cache-dir --upgrade pip
sudo -H -E pip install --no-cache-dir --upgrade setuptools
sudo -H -E pip install --no-cache-dir --upgrade pyopenssl
sudo -H -E pip install --no-cache-dir \
ansible \
ara \
yq