[remove-etcd-node] fix json path query

pull/8784/head
Calin Cristian Andrei 2022-05-03 14:56:07 +03:00 committed by Kubernetes Prow Robot
parent 9143810a4d
commit 5bc35002ba
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
- name: Lookup node IP in kubernetes - name: Lookup node IP in kubernetes
command: > command: >
{{ kubectl }} get nodes {{ node }} {{ kubectl }} get nodes {{ node }}
-o jsonpath={range.status.addresses[?(@.type=="InternalIP")]}{.address}{"\n"}{end} -o jsonpath='{range .status.addresses[?(@.type=="InternalIP")]}{@.address}{"\n"}{end}'
register: remove_node_ip register: remove_node_ip
when: when:
- inventory_hostname in groups['etcd'] - inventory_hostname in groups['etcd']