mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
ansible-lint: don't compare to empty string [E602] (#4665)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
f518b90c6b
commit
88d919337e
@@ -54,5 +54,8 @@
|
||||
|
||||
- name: Gen_tokens | Copy tokens on masters
|
||||
shell: "echo '{{ tokens_data.stdout|quote }}' | base64 -d | tar xz -C /"
|
||||
when: inventory_hostname in groups['kube-master'] and sync_tokens|default(false) and
|
||||
inventory_hostname != groups['kube-master'][0] and tokens_data.stdout != ''
|
||||
when:
|
||||
- inventory_hostname in groups['kube-master']
|
||||
- sync_tokens|default(false)
|
||||
- inventory_hostname != groups['kube-master'][0]
|
||||
- tokens_data.stdout
|
||||
|
||||
Reference in New Issue
Block a user