summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-09-20 16:05:04 -0400
committerGitHub <noreply@github.com>2016-09-20 16:05:04 -0400
commit4313ad4b3d5dad85d1016d64cc558a749919c563 (patch)
treeef6d16136f4606503c40410524fb6a08b9b32c74 /roles/openshift_facts
parent8b23cf0b83273bdb4cc75c583cb2f5bbeab26e22 (diff)
parent4058f70c2969b4c9c8485be682fe872b5a3a0d64 (diff)
downloadopenshift-4313ad4b3d5dad85d1016d64cc558a749919c563.tar.gz
openshift-4313ad4b3d5dad85d1016d64cc558a749919c563.tar.bz2
openshift-4313ad4b3d5dad85d1016d64cc558a749919c563.tar.xz
openshift-4313ad4b3d5dad85d1016d64cc558a749919c563.zip
Merge pull request #2476 from sdodson/split_builddefaults_no_proxy
Split openshift_builddefaults_no_proxy if it's not a list
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index bdc7d3947..7182ac627 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -1433,6 +1433,9 @@ def set_proxy_facts(facts):
builddefaults['http_proxy'] = common['http_proxy']
if 'https_proxy' not in builddefaults and 'https_proxy' in common:
builddefaults['https_proxy'] = common['https_proxy']
+ # make no_proxy into a list if it's not
+ if 'no_proxy' in builddefaults and isinstance(builddefaults['no_proxy'], basestring):
+ builddefaults['no_proxy'] = builddefaults['no_proxy'].split(",")
if 'no_proxy' not in builddefaults and 'no_proxy' in common:
builddefaults['no_proxy'] = common['no_proxy']
if 'git_http_proxy' not in builddefaults and 'http_proxy' in builddefaults: