Skip to content

Commit 7d9aaa0

Browse files
committed
Add TEMPEST_NO_PROXY_EXTRA
This gives a mechanism to override NO_PROXY. Note that the requests library supports cidr notation: - https://about.gitlab.com/blog/2021/01/27/we-need-to-talk-no-proxy/ - https://kmadac.github.io/posts/no-proxy-in-requests
1 parent 70faeb2 commit 7d9aaa0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bin/rally-verify-wrapper.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ set -eux
1111

1212
artifacts_dir=/home/rally/artifacts
1313

14+
if [ ! -z ${TEMPEST_NO_PROXY_EXTRA:+x} ]; then
15+
if [ -z ${NO_PROXY:+x} ]; then
16+
NO_PROXY="$TEMPEST_NO_PROXY_EXTRA"
17+
else
18+
NO_PROXY="$NO_PROXY,$TEMPEST_NO_PROXY_EXTRA"
19+
fi
20+
if [ -z ${no_proxy:+x} ]; then
21+
no_proxy="$TEMPEST_NO_PROXY_EXTRA"
22+
else
23+
no_proxy="$no_proxy,$TEMPEST_NO_PROXY_EXTRA"
24+
fi
25+
fi
26+
1427
if [ ! -z ${TEMPEST_LOAD_LIST:+x} ]; then
1528
echo "$TEMPEST_LOAD_LIST" > ~/tempest-load-list
1629
fi

0 commit comments

Comments
 (0)