[users/init] use createhome from defaults

Related to change operated in https://github.com/saltstack-formulas/users-formula/commit/634deacc73081f282736707af22fb53cfee30cbe
This commit is contained in:
Arthur Lutz authored and GitHub committed 2019-07-10 11:48:35 +02:00
1 parent 7884fe6b29
commit 2d5fb596a9
1 file changed
+2 -2
+2 -2
View File
@@ -67,8 +67,8 @@ 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', current.get('createhome', users.get('createhome'))) -%}
{%- if 'prime_group' in user and 'name' in user['prime_group'] %}
{%- set user_group = user.prime_group.name -%}
{%- else -%}