summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/tasks
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-27 10:56:57 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-27 11:01:18 -0500
commit3b877826bc214c7e1e952b1968f933c40e477f50 (patch)
tree98b4290405844769b80c5829dde6aa7b4db7871d /roles/openshift_hosted/tasks
parent41ee91326a9f533396bc876d399d4e7c50c9ea38 (diff)
downloadopenshift-3b877826bc214c7e1e952b1968f933c40e477f50.tar.gz
openshift-3b877826bc214c7e1e952b1968f933c40e477f50.tar.bz2
openshift-3b877826bc214c7e1e952b1968f933c40e477f50.tar.xz
openshift-3b877826bc214c7e1e952b1968f933c40e477f50.zip
Moving replica logic to filter_plugin to fix skipped task variable behavior.
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r--roles/openshift_hosted/tasks/router/router.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_hosted/tasks/router/router.yml b/roles/openshift_hosted/tasks/router/router.yml
index 3535d5f5e..607ace7f9 100644
--- a/roles/openshift_hosted/tasks/router/router.yml
+++ b/roles/openshift_hosted/tasks/router/router.yml
@@ -10,7 +10,7 @@
- name: set_fact replicas
set_fact:
- replicas: "{{ openshift.hosted.router.replicas | default(router_nodes.results.results[0]['items'] | length) }}"
+ replicas: "{{ openshift.hosted.router.replicas|default(None) | get_router_replicas(router_nodes) }}"
- block: