From 965372d0d249576382494a74ffc8fb73c6dc8131 Mon Sep 17 00:00:00 2001 From: outime Date: Sun, 27 Sep 2015 18:59:09 +0200 Subject: [PATCH] Changed 'empty_password' key retrieval method --- users/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/init.sls b/users/init.sls index cc88135..e2af37f 100644 --- a/users/init.sls +++ b/users/init.sls @@ -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'] }}