use do to update dict

This commit is contained in:
Maximilian Zettler 2018-08-24 14:25:35 +02:00
parent 9eedbede74
commit 0e93ebccdb
1 changed files with 1 additions and 2 deletions

View File

@ -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 %}