summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node_upgrade
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-05-19 14:18:01 +0200
committerGitHub <noreply@github.com>2017-05-19 14:18:01 +0200
commit129dd9ccfb329ea296ad526acd4adf02c4004864 (patch)
tree5491a4c5a298ce13ec1207ce02bb95cc8e4c64b9 /roles/openshift_node_upgrade
parent80a71ef857cf6268d5f27c4c68bcd59f2c110af5 (diff)
parent644228de3fd18f47399290535cb3aca5e2bfa009 (diff)
downloadopenshift-129dd9ccfb329ea296ad526acd4adf02c4004864.tar.gz
openshift-129dd9ccfb329ea296ad526acd4adf02c4004864.tar.bz2
openshift-129dd9ccfb329ea296ad526acd4adf02c4004864.tar.xz
openshift-129dd9ccfb329ea296ad526acd4adf02c4004864.zip
Merge pull request #4094 from ashcrow/status-doesnt-exist
Ensure good return code for specific until loops
Diffstat (limited to 'roles/openshift_node_upgrade')
-rw-r--r--roles/openshift_node_upgrade/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_node_upgrade/tasks/main.yml b/roles/openshift_node_upgrade/tasks/main.yml
index a41a97e01..7231bdb9d 100644
--- a/roles/openshift_node_upgrade/tasks/main.yml
+++ b/roles/openshift_node_upgrade/tasks/main.yml
@@ -143,7 +143,7 @@
name: "{{ openshift.common.hostname | lower }}"
register: node_output
delegate_to: "{{ groups.oo_first_master.0 }}"
- until: node_output.results.results[0].status.conditions | selectattr('type', 'match', '^Ready$') | map(attribute='status') | join | bool == True
+ until: node_output.results.returncode == 0 and node_output.results.results[0].status.conditions | selectattr('type', 'match', '^Ready$') | map(attribute='status') | join | bool == True
# Give the node two minutes to come back online.
retries: 24
delay: 5