From 57fce16643b46ce64ed2e56c0eaae086ebe06f52 Mon Sep 17 00:00:00 2001 From: Eric Veiras Galisson Date: Wed, 10 Aug 2016 10:32:46 +0200 Subject: [PATCH] fixing removing of users based on pillar['absent_users'], fix #126 --- users/init.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/init.sls b/users/init.sls index 69e513d..5949caf 100644 --- a/users/init.sls +++ b/users/init.sls @@ -476,7 +476,8 @@ users_{{ users.sudoers_dir }}/{{ name }}: {% for user in pillar.get('absent_users', []) %} users_absent_user_2_{{ user }}: - user.absent + user.absent: + - name: {{ name }} users_2_{{ users.sudoers_dir }}/{{ user }}: file.absent: - name: {{ users.sudoers_dir }}/{{ user }}