mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
v2 try of gid converted to integer
This commit is contained in:
parent
d38951b1b3
commit
b9556bf923
1 changed files with 8 additions and 2 deletions
|
@ -73,8 +73,14 @@ def _changes(name,
|
|||
|
||||
change = {}
|
||||
if gid:
|
||||
if lgrp['gid'] != gid:
|
||||
change['gid'] = gid
|
||||
try:
|
||||
gid = int(gid)
|
||||
if lgrp['gid'] != gid:
|
||||
change['gid'] = gid
|
||||
except (TypeError, ValueError):
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'Invalid gid'
|
||||
return ret
|
||||
|
||||
if members:
|
||||
# -- if new member list if different than the current
|
||||
|
|
Loading…
Add table
Reference in a new issue