mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2024-11-28 00:48:22 +01:00
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.
This commit is contained in:
parent
def8f53932
commit
c128b1ea28
@ -13,7 +13,7 @@ users_group_absent_{{ group }}:
|
|||||||
users_group_present_{{ group }}:
|
users_group_present_{{ group }}:
|
||||||
group.present:
|
group.present:
|
||||||
- name: {{ group }}
|
- name: {{ group }}
|
||||||
- gid: {{ setting.get('gid') }}
|
- gid: {{ setting.get('gid', "null") }}
|
||||||
- system: {{ setting.get('system',"False") }}
|
- system: {{ setting.get('system',"False") }}
|
||||||
- members: {{ setting.get('members')|json }}
|
- members: {{ setting.get('members')|json }}
|
||||||
- addusers: {{ setting.get('addusers')|json }}
|
- addusers: {{ setting.get('addusers')|json }}
|
||||||
|
Loading…
Reference in New Issue
Block a user