summaryrefslogtreecommitdiffstats
path: root/roles/docker
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-09-20 16:38:50 -0400
committerMichael Gugino <mgugino@redhat.com>2017-09-20 16:38:50 -0400
commit0fee9f4e194101cfbd094d140b59d1b262b9b6a6 (patch)
treee791eca6b1b9fb25ae4184aa3dd72199b0098aeb /roles/docker
parent4f5839e585a78243eae2d215176047299c52a1eb (diff)
downloadopenshift-0fee9f4e194101cfbd094d140b59d1b262b9b6a6.tar.gz
openshift-0fee9f4e194101cfbd094d140b59d1b262b9b6a6.tar.bz2
openshift-0fee9f4e194101cfbd094d140b59d1b262b9b6a6.tar.xz
openshift-0fee9f4e194101cfbd094d140b59d1b262b9b6a6.zip
Remove default value for oreg_url
Due to some plays importing variables from roles directly, oreg_url was being set to a default value when it otherwise shouldn't be. This commit removes the default values for oreg_url to ensure existing logic works as desired. Fixes: https://github.com/openshift/openshift-ansible/issues/5455
Diffstat (limited to 'roles/docker')
-rw-r--r--roles/docker/defaults/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml
index 7e206ded1..81f3ee9e4 100644
--- a/roles/docker/defaults/main.yml
+++ b/roles/docker/defaults/main.yml
@@ -1,6 +1,6 @@
---
docker_cli_auth_config_path: '/root/.docker'
-oreg_url: ''
-oreg_host: "{{ oreg_url.split('/')[0] if '.' in oreg_url.split('/')[0] else '' }}"
+# oreg_url is defined by user input.
+oreg_host: "{{ oreg_url.split('/')[0] if (oreg_url is defined and '.' in oreg_url.split('/')[0]) else '' }}"
oreg_auth_credentials_replace: False