Merge pull request #1370 from Abdelsalam-Abbas/master
Fixing a condition that cause upgrade failure.
This commit is contained in:
commit
d2b793057e
1 changed files with 3 additions and 3 deletions
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
needs_cordoning: >-
|
needs_cordoning: >-
|
||||||
{% if " Ready" in kubectl_nodes.stdout %}
|
{% if " Ready" in kubectl_nodes.stdout -%}
|
||||||
true
|
true
|
||||||
{% else %}
|
{%- else -%}
|
||||||
false
|
false
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
|
|
||||||
- name: Cordon node
|
- name: Cordon node
|
||||||
command: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }}"
|
command: "{{ bin_dir }}/kubectl cordon {{ inventory_hostname }}"
|
||||||
|
|
Loading…
Reference in a new issue