[tutorial 083] A variable with custom validation
This commit is contained in:
parent
01aeeae707
commit
0a9139fdbe
1 changed files with 6 additions and 0 deletions
|
@ -23,3 +23,9 @@ dns_over_https: # DNS over HTTPS
|
|||
provider is not custom
|
||||
{% endif %}
|
||||
description: if "dns_over_https.provider" is not "Custom"
|
||||
validators:
|
||||
- jinja: |
|
||||
{% if dns_over_https.custom_dns_url.startswith('http://') %}
|
||||
only https is allowed
|
||||
{% endif %}
|
||||
description: must starts with 'https://' only
|
||||
|
|
Loading…
Reference in a new issue