fix: correct unsafe conditional (#1737)

This commit is contained in:
kurokobo
2024-03-02 05:54:40 +09:00
committed by GitHub
parent 607a7ca58c
commit 16b2f2a34f

View File

@@ -22,7 +22,7 @@
include_tasks: dump_ingress_tls_secrets.yml
with_items:
- "{{ awx_spec.spec['ingress_hosts'] | default('') | map(attribute='tls_secret', default='') | select() | list }}"
when: "{{ awx_spec.spec['ingress_hosts'] | default('') | map(attribute='tls_secret', default='') | select() | list | length }}"
when: awx_spec.spec['ingress_hosts'] | default('') | map(attribute='tls_secret', default='') | select() | list | length
- name: Dump receptor secret names and data into file
include_tasks: dump_receptor_secrets.yml