Merge pull request #8 from ChronoPositron/group-id-undefined-var
Fix Undefined jinja variable error with Salt 0.17.1
This commit is contained in:
commit
260388cd20
@ -25,7 +25,9 @@ include:
|
|||||||
- group: {{ name }}
|
- group: {{ name }}
|
||||||
group.present:
|
group.present:
|
||||||
- name: {{ name }}
|
- name: {{ name }}
|
||||||
|
{% if 'uid' in user -%}
|
||||||
- gid: {{ user['uid'] }}
|
- gid: {{ user['uid'] }}
|
||||||
|
{% endif %}
|
||||||
user.present:
|
user.present:
|
||||||
- name: {{ name }}
|
- name: {{ name }}
|
||||||
- home: {{ home }}
|
- home: {{ home }}
|
||||||
|
Loading…
Reference in New Issue
Block a user