Browse Source

fix used_polkit

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

+ 2
- 2
users/init.sls View File

{% set used_sudo = [] %} {% set used_sudo = [] %}
{% set used_googleauth = [] %} {% set used_googleauth = [] %}
{% set used_user_files = [] %} {% set used_user_files = [] %}
{% set used_polkit = False %}
{% set used_polkit = [] %}


{%- 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 %}
{%- do used_user_files.append(1) %} {%- do used_user_files.append(1) %}
{%- endif %} {%- endif %}
{%- if user.get('polkitadmin', False) == True %} {%- if user.get('polkitadmin', False) == True %}
{%- set used_polkit = True %}
{%- do used_polkit.append(1) %}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}



Loading…
Cancel
Save