Ver a proveniência

Fixed assertion block to remove jinja2 delimiters

element-call-integration
Backslash há 1 ano
committed by GitHub
ascendente
cometimento
350d4d4bcd
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      roles/custom/matrix-element-call/tasks/validate_config.yml

+ 2
- 2
roles/custom/matrix-element-call/tasks/validate_config.yml Ver ficheiro

@@ -21,7 +21,7 @@
- name: Validate that the Element Call hostname is properly formatted - name: Validate that the Element Call hostname is properly formatted
ansible.builtin.assert: ansible.builtin.assert:
that: that:
- "'{{ matrix_element_call_hostname }}' is match('^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9])$')"
- matrix_element_call_hostname is match('^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9])$')
fail_msg: "The hostname '{{ matrix_element_call_hostname }}' is not valid. It should be a valid domain or subdomain." fail_msg: "The hostname '{{ matrix_element_call_hostname }}' is not valid. It should be a valid domain or subdomain."
success_msg: "The hostname '{{ matrix_element_call_hostname }}' is valid." success_msg: "The hostname '{{ matrix_element_call_hostname }}' is valid."


@@ -76,4 +76,4 @@
ansible.builtin.fail: ansible.builtin.fail:
msg: "The required configuration path '{{ item.path }}' does not exist or is not accessible." msg: "The required configuration path '{{ item.path }}' does not exist or is not accessible."
when: config_paths_check.results is defined and config_paths_check.results | selectattr('failed', 'eq', True) | list | length > 0 when: config_paths_check.results is defined and config_paths_check.results | selectattr('failed', 'eq', True) | list | length > 0
loop: "{{ config_paths_check.results | selectattr('failed', 'eq', True) | list }}"
loop: "{{ config_paths_check.results | selectattr('failed', 'eq', True) | list }}"

Carregando…
Cancelar
Guardar