0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 05:08:00 +01:00

Merge pull request #55 from JaseFace/master

Sorry for the spam, simplify this remove_groups rule a bit
This commit is contained in:
Nitin Madhok 2014-10-14 22:22:55 -04:00
commit a9d3f23eb5

View File

@ -58,11 +58,7 @@
{% if not user.get('createhome', True) %} {% if not user.get('createhome', True) %}
- createhome: False - createhome: False
{% endif %} {% endif %}
{% if user.get('remove_groups', True) %} - remove_groups: {{ user.get('remove_groups', 'False') }}
- remove_groups: True
{% else %}
- remove_groups: False
{% endif %}
- groups: - groups:
- {{ user_group }} - {{ user_group }}
{% for group in user.get('groups', []) -%} {% for group in user.get('groups', []) -%}