mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
ce7b1f4baf
commit
a18dbe0c11
1 changed files with 5 additions and 0 deletions
|
@ -459,6 +459,11 @@ def present(name,
|
|||
|
||||
if gid_from_name:
|
||||
gid = __salt__['file.group_to_gid'](name)
|
||||
if not gid:
|
||||
ret['comment'] = 'Default group with name "{0}" ' \
|
||||
'is not present'.format(name)
|
||||
ret['result'] = False
|
||||
return ret
|
||||
|
||||
changes = _changes(name,
|
||||
uid,
|
||||
|
|
Loading…
Add table
Reference in a new issue