ensure ret is always defined

This commit is contained in:
Justin Findlay 2015-07-09 01:42:26 -06:00
parent 4e7346aac4
commit 9dbd6d85fb

View file

@ -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