[tutorial Rougail 2.2] calculed variable
Apero configuration =================== Get password from an user
This commit is contained in:
parent
e87d2d69b7
commit
0adf7aea25
1 changed files with 11 additions and 0 deletions
|
@ -30,3 +30,14 @@ env_srep:
|
|||
variable: socle.env_apero.access.login
|
||||
test:
|
||||
- srep
|
||||
apero_password:
|
||||
type: secret
|
||||
hidden: true
|
||||
default:
|
||||
type: jinja
|
||||
jinja: |
|
||||
{% for value in socle.env_apero.access.login %}
|
||||
{% if value == socle.env_srep.apero_user %}
|
||||
{{ socle.env_apero.access.password[loop.index0] }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue