summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-09-20 15:27:44 -0400
committerScott Dodson <sdodson@redhat.com>2016-09-20 15:27:44 -0400
commit4058f70c2969b4c9c8485be682fe872b5a3a0d64 (patch)
treeef6d16136f4606503c40410524fb6a08b9b32c74 /roles/openshift_facts/library
parent72d654637a04c17ac6c8235e71744ec46ad8f329 (diff)
downloadopenshift-4058f70c2969b4c9c8485be682fe872b5a3a0d64.tar.gz
openshift-4058f70c2969b4c9c8485be682fe872b5a3a0d64.tar.bz2
openshift-4058f70c2969b4c9c8485be682fe872b5a3a0d64.tar.xz
openshift-4058f70c2969b4c9c8485be682fe872b5a3a0d64.zip
Split openshift_builddefaults_no_proxy if it's not a list
Diffstat (limited to 'roles/openshift_facts/library')
-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: