Skip to content
Snippets Groups Projects
Commit 5bc35002 authored by Calin Cristian Andrei's avatar Calin Cristian Andrei Committed by Kubernetes Prow Robot
Browse files

[remove-etcd-node] fix json path query

parent 9143810a
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment