mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
The passed gid
can be the group name, covert it to gid
before comparing.
This commit is contained in:
parent
e052116d32
commit
1c4164f031
@ -66,7 +66,8 @@ def _changes(
|
||||
if lusr['uid'] != uid:
|
||||
change['uid'] = uid
|
||||
if gid:
|
||||
if lusr['gid'] != gid:
|
||||
if lusr['gid'] not in (gid,
|
||||
__salt__['file.group_to_gid'](gid)):
|
||||
change['gid'] = gid
|
||||
# remove the default group from the list for
|
||||
# comparison purposes
|
||||
|
Loading…
Reference in New Issue
Block a user