From 24f12b024df8aa4026eff13a14580e96311ef343 Mon Sep 17 00:00:00 2001 From: emiran-orange <71817149+emiran-orange@users.noreply.github.com> Date: Fri, 5 Aug 2022 17:09:47 +0200 Subject: [PATCH] Argument jsonpath must be single-quoted in "See if node is schedulable" task (#9146) --- roles/upgrade/pre-upgrade/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml index 50c652872..1f65aa239 100644 --- a/roles/upgrade/pre-upgrade/tasks/main.yml +++ b/roles/upgrade/pre-upgrade/tasks/main.yml @@ -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