瀏覽代碼

[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
tags/v0.45.0
Arthur Lutz 5 年之前
父節點
當前提交
8d48adb3a2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      users/init.sls

+ 1
- 1
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 -%}

Loading…
取消
儲存