From 8d48adb3a24318810c7a214dea02224de5293bf1 Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Wed, 10 Jul 2019 15:47:18 +0200 Subject: [PATCH] [users/init] use createhome from defaults (#202) 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 --- users/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/init.sls b/users/init.sls index 2cf2af0..abbf980 100644 --- a/users/init.sls +++ b/users/init.sls @@ -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 -%}