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() %}
|
{% for name, user in pillar.get('users', {}).items() %}
|
||||||
{% if user.absent is not defined or not user.absent %}
|
{% if user.absent is not defined or not user.absent %}
|
||||||
{% if 'polkitadmin' in user and user['polkitadmin'] %}
|
{% if 'polkitadmin' in user and user['polkitadmin'] %}
|
||||||
{% if polkitusers.update({'value': polkitusers.value + 'unix-user:' + name + ';'}) %}
|
{% do polkitusers.update({'value': polkitusers.value + 'unix-user:' + name + ';'}) %}
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user