use do to update dict
This commit is contained in:
parent
9eedbede74
commit
0e93ebccdb
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user