Argument jsonpath must be single-quoted in "See if node is schedulable" task (#9146)

This commit is contained in:
emiran-orange
2022-08-05 17:09:47 +02:00
committed by GitHub
parent f7d363dc96
commit 24f12b024d

View File

@ -30,7 +30,7 @@
- name: See if node is schedulable
command: >
{{ kubectl }} get node {{ kube_override_hostname|default(inventory_hostname) }}
-o jsonpath={ .spec.unschedulable }
-o jsonpath='{ .spec.unschedulable }'
register: kubectl_node_schedulable
delegate_to: "{{ groups['kube_control_plane'][0] }}"
failed_when: false