summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-node
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 /playbooks/common/openshift-node
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 'playbooks/common/openshift-node')
-rw-r--r--playbooks/common/openshift-node/restart.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-node/restart.yml b/playbooks/common/openshift-node/restart.yml
index 441b100e9..01cf948e0 100644
--- a/playbooks/common/openshift-node/restart.yml
+++ b/playbooks/common/openshift-node/restart.yml
@@ -51,7 +51,7 @@
register: node_output
delegate_to: "{{ groups.oo_first_master.0 }}"
when: inventory_hostname in groups.oo_nodes_to_config
- 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