Skip to content

Commit

Permalink
Single quotes are missing in jsonpath argument of kubectl get node (k…
Browse files Browse the repository at this point in the history
  • Loading branch information
emiran-orange authored and sakuraiyuta committed Apr 16, 2022
1 parent 5a431ac commit 5832463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/upgrade/pre-upgrade/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: See if node is in ready state
command: >
{{ kubectl }} get node {{ kube_override_hostname|default(inventory_hostname) }}
-o jsonpath={ range .status.conditions[?(@.type == "Ready")].status }{ @ }{ end }
-o jsonpath='{ range .status.conditions[?(@.type == "Ready")].status }{ @ }{ end }'
register: kubectl_node_ready
delegate_to: "{{ groups['kube_control_plane'][0] }}"
failed_when: false
Expand Down

0 comments on commit 5832463

Please sign in to comment.