Skip to content

Commit 7379d62

Browse files
committed
Setting only if proxy is defined
1 parent e626c77 commit 7379d62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible/kayobe-automation-run-tempest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@
139139
--env TEMPEST_CONF_OVERRIDES="$TEMPEST_CONF_OVERRIDES"
140140
--env TEMPEST_NO_PROXY_EXTRA
141141
--env RALLY_CONF_ENABLE_CREATE_TEMPEST_RESOURCES
142-
--env HTTP_PROXY="$TEMPEST_HTTP_PROXY"
143-
--env HTTPS_PROXY="$TEMPEST_HTTPS_PROXY"
144-
--env NO_PROXY="$TEMPEST_NO_PROXY"
142+
{% if lookup('env', 'TEMPEST_HTTP_PROXY') %}--env HTTP_PROXY="$TEMPEST_HTTP_PROXY"{% endif %}
143+
{% if lookup('env', 'TEMPEST_HTTPS_PROXY') %}--env HTTPS_PROXY="$TEMPEST_HTTPS_PROXY"{% endif %}
144+
{% if lookup('env', 'TEMPEST_NO_PROXY') %}--env NO_PROXY="$TEMPEST_NO_PROXY"{% endif %}
145145
{% if tempest_load_list_path is defined -%}
146146
-v {{ load_list_path_remote }}:/home/rally/tempest-load-list:rw
147147
{% endif -%}

0 commit comments

Comments
 (0)