From 0e93ebccdb857c5860c89cfaa3d0f0c45fc77b11 Mon Sep 17 00:00:00 2001 From: Maximilian Zettler Date: Fri, 24 Aug 2018 14:25:35 +0200 Subject: [PATCH] use do to update dict --- users/polkit.sls | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/users/polkit.sls b/users/polkit.sls index df959bc..fd8a5ed 100644 --- a/users/polkit.sls +++ b/users/polkit.sls @@ -5,8 +5,7 @@ {% for name, user in pillar.get('users', {}).items() %} {% if user.absent is not defined or not user.absent %} {% if 'polkitadmin' in user and user['polkitadmin'] %} - {% if polkitusers.update({'value': polkitusers.value + 'unix-user:' + name + ';'}) %} - {% endif %} + {% do polkitusers.update({'value': polkitusers.value + 'unix-user:' + name + ';'}) %} {% endif %} {% endif %} {% endfor %}