瀏覽代碼

gid: default to "null"

using `|json` would let the state get an error if gid is a string, as it would
not be converted.

Using directly the `None` yaml value, and letting numbers as string be
converted by yaml parser.
tags/v0.45.0
Adrien "ze" Urban 5 年之前
父節點
當前提交
c128b1ea28
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      users/init.sls

+ 1
- 1
users/init.sls 查看文件

@@ -13,7 +13,7 @@ users_group_absent_{{ group }}:
users_group_present_{{ group }}:
group.present:
- name: {{ group }}
- gid: {{ setting.get('gid') }}
- gid: {{ setting.get('gid', "null") }}
- system: {{ setting.get('system',"False") }}
- members: {{ setting.get('members')|json }}
- addusers: {{ setting.get('addusers')|json }}

Loading…
取消
儲存