Skip to content
Snippets Groups Projects
Commit 6924c6e5 authored by Michael Shen's avatar Michael Shen Committed by Kubernetes Prow Robot
Browse files

[FIX] fix match because trim removes leading/trailing whitespace (#5356)

parent 85c851f5
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
with_items: "{{ hostvars[groups['kube-master'][0]]['kubeadm_init'].stdout_lines | default([]) }}" with_items: "{{ hostvars[groups['kube-master'][0]]['kubeadm_init'].stdout_lines | default([]) }}"
when: when:
- kubeadm_certificate_key is not defined - kubeadm_certificate_key is not defined
- item | trim | match('.*--certificate-key .*') - item | trim | match('.*--certificate-key.*')
- name: Create hardcoded kubeadm token for joining nodes with 24h expiration (if defined) - name: Create hardcoded kubeadm token for joining nodes with 24h expiration (if defined)
shell: >- shell: >-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment