0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-27 22:38:34 +01:00

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 -%}
- password: '{{ user['password'] }}'
{% endif -%}
{% if 'empty_password' in user -%}
- empty_password: {{ user['empty_password'] }}
{% if user.get('empty_password') -%}
- empty_password: {{ user.get('empty_password') }}
{% endif -%}
{% if 'enforce_password' in user -%}
- enforce_password: {{ user['enforce_password'] }}