From 9c31548c9bfb2e0bbfba7e927331c54640454d26 Mon Sep 17 00:00:00 2001 From: lamt Date: Fri, 5 Jan 2018 08:55:51 -0600 Subject: [PATCH] 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 --- tools/gate/devel/start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/gate/devel/start.sh b/tools/gate/devel/start.sh index 0e82a38d45..9105b7c40b 100755 --- a/tools/gate/devel/start.sh +++ b/tools/gate/devel/start.sh @@ -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