Fixing cordoning condition that cause fail for upgrading the cluster

This commit is contained in:
Abdelsalam Abbas 2017-06-22 01:56:31 +02:00
parent 5364a10033
commit 1a8e92c922

View file

@ -7,11 +7,11 @@
- set_fact:
needs_cordoning: >-
{% if " Ready" in kubectl_nodes.stdout %}
{% if " Ready" in kubectl_nodes.stdout -%}
true
{% else %}
{%- else -%}
false
{% endif %}
{%- endif %}
- name: Cordon node
command: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }}"