mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
ensure ret is always defined
This commit is contained in:
parent
4e7346aac4
commit
9dbd6d85fb
1 changed files with 1 additions and 2 deletions
|
@ -127,8 +127,7 @@ def add(name,
|
|||
profile=profile,
|
||||
fullname=fullname)
|
||||
|
||||
if groups:
|
||||
ret = chgroups(name, groups)
|
||||
ret = chgroups(name, groups) if groups else True
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue