mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25283 from jfindlay/win_user
ensure ret is always defined
This commit is contained in:
commit
4eb62e322d
1 changed files with 1 additions and 2 deletions
|
@ -125,8 +125,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