Sfoglia il codice sorgente

Fixed regex for checking the hostname.

element-call-integration
Backslash 1 anno fa
committed by GitHub
parent
commit
90ea758c3b
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      roles/custom/matrix-element-call/tasks/validate_config.yml

+ 2
- 2
roles/custom/matrix-element-call/tasks/validate_config.yml Vedi File

@@ -21,10 +21,10 @@
- name: Validate that the Element Call hostname is properly formatted
ansible.builtin.assert:
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]\.)+[a-zA-Z]{2,}$')
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."
- name: Validate that the Element Call version is specified correctly
ansible.builtin.assert:
that:


Caricamento…
Annulla
Salva