Skip to content

Commit

Permalink
[users/init] use createhome from defaults (#202)
Browse files Browse the repository at this point in the history
This fixes a change introduced by 634deac where createhome was changed from True to False (by default).

This change honnor the default "global default" "users.createhome" from defaults.sls
  • Loading branch information
arthurzenika authored and philpep committed Jul 10, 2019
1 parent 7884fe6 commit 8d48adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ include:
{%- endif -%}
{%- set current = salt.user.info(name) -%}
{%- set home = user.get('home', current.get('home', "/home/%s" % name)) -%}
{%- set createhome = user.get('createhome') -%}
{%- set createhome = user.get('createhome', users.get('createhome')) -%}
{%- if 'prime_group' in user and 'name' in user['prime_group'] %}
{%- set user_group = user.prime_group.name -%}
Expand Down

0 comments on commit 8d48adb

Please sign in to comment.