From c128b1ea286716a2ff6b1db4c2b17d3fddf3e303 Mon Sep 17 00:00:00 2001 From: "Adrien \"ze\" Urban" Date: Thu, 7 Mar 2019 14:38:54 +0100 Subject: [PATCH] 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. --- users/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/init.sls b/users/init.sls index 8af84d5..068d3f6 100644 --- a/users/init.sls +++ b/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 }}