Changed 'empty_password' key retrieval method

This commit is contained in:
outime 2015-09-27 18:59:09 +02:00
parent 441d3cb635
commit 965372d0d2

View File

@ -81,8 +81,8 @@ users_{{ name }}_user:
{% if 'password' in user -%} {% if 'password' in user -%}
- password: '{{ user['password'] }}' - password: '{{ user['password'] }}'
{% endif -%} {% endif -%}
{% if 'empty_password' in user -%} {% if user.get('empty_password') -%}
- empty_password: {{ user['empty_password'] }} - empty_password: {{ user.get('empty_password') }}
{% endif -%} {% endif -%}
{% if 'enforce_password' in user -%} {% if 'enforce_password' in user -%}
- enforce_password: {{ user['enforce_password'] }} - enforce_password: {{ user['enforce_password'] }}