Browse Source

use do to update dict

tags/v0.45.0
Maximilian Zettler 6 years ago
parent
commit
0e93ebccdb
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      users/polkit.sls

+ 1
- 2
users/polkit.sls 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 %}

Loading…
Cancel
Save