[remove-etcd-node] fix json path query

This commit is contained in:
Calin Cristian Andrei 2022-05-03 14:56:07 +03:00 committed by Kubernetes Prow Robot
parent 9143810a4d
commit 5bc35002ba

View file

@ -2,7 +2,7 @@
- name: Lookup node IP in kubernetes
command: >
{{ 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
when:
- inventory_hostname in groups['etcd']